# GrapeCity.Drawing.Pen

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="GrapeCity_Drawing_Pen" data-uid="GrapeCity.Drawing.Pen" class="text-break">Pen Class
</h1>
  <div class="markdown level0 summary"><p>Defines an object used to draw lines and curves.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
    <div class="level1"><span class="xref">Pen</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.iequatable-1">IEquatable</a>&lt;<a class="xref" href="GrapeCity.Drawing.Pen.html">Pen</a>&gt;</div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="GrapeCity.Drawing.html">GrapeCity.Drawing</a></h6>
  <h6><strong>Assembly</strong>: GrapeCity.Spreadsheet.dll</h6>
  <h5 id="GrapeCity_Drawing_Pen_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public sealed class Pen : IEquatable&lt;Pen&gt;</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public NotInheritable Class Pen
    Implements IEquatable(Of Pen)</code></pre>
  </div>
  <h3 id="constructors">Constructors
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="GrapeCity_Drawing_Pen__ctor_GrapeCity_Core_SchemeColor_System_Double_" data-uid="GrapeCity.Drawing.Pen.#ctor(GrapeCity.Core.SchemeColor,System.Double)">
          <a class="xref" href="GrapeCity.Drawing.Pen.-ctor.html#GrapeCity_Drawing_Pen__ctor_GrapeCity_Core_SchemeColor_System_Double_">Pen(SchemeColor, double)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.Drawing.Pen.html">Pen</a> class with the specified color and width.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Drawing_Pen__ctor_GrapeCity_Drawing_Brush_System_Double_" data-uid="GrapeCity.Drawing.Pen.#ctor(GrapeCity.Drawing.Brush,System.Double)">
          <a class="xref" href="GrapeCity.Drawing.Pen.-ctor.html#GrapeCity_Drawing_Pen__ctor_GrapeCity_Drawing_Brush_System_Double_">Pen(Brush, double)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.Drawing.Pen.html">Pen</a> class with the specified brush and width.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="fields">Fields
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="GrapeCity_Drawing_Pen_GroupPen" data-uid="GrapeCity.Drawing.Pen.GroupPen">
          <a class="xref" href="GrapeCity.Drawing.Pen.GroupPen.html">GroupPen</a>
        </td>
        <td class="markdown level1 summary"><p>Represents the group pen.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Drawing_Pen_NoPen" data-uid="GrapeCity.Drawing.Pen.NoPen">
          <a class="xref" href="GrapeCity.Drawing.Pen.NoPen.html">NoPen</a>
        </td>
        <td class="markdown level1 summary"><p>Represents there is no pen.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="properties">Properties
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="GrapeCity_Drawing_Pen_Alignment" data-uid="GrapeCity.Drawing.Pen.Alignment">
          <a class="xref" href="GrapeCity.Drawing.Pen.Alignment.html#GrapeCity_Drawing_Pen_Alignment">Alignment</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the alignment for this <a class="xref" href="GrapeCity.Drawing.Pen.html">Pen</a>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Drawing_Pen_Brush" data-uid="GrapeCity.Drawing.Pen.Brush">
          <a class="xref" href="GrapeCity.Drawing.Pen.Brush.html#GrapeCity_Drawing_Pen_Brush">Brush</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the <a class="xref" href="GrapeCity.Drawing.Pen.Brush.html#GrapeCity_Drawing_Pen_Brush">Brush</a> that determines attributes of this <a class="xref" href="GrapeCity.Drawing.Pen.html">Pen</a>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Drawing_Pen_DashPattern" data-uid="GrapeCity.Drawing.Pen.DashPattern">
          <a class="xref" href="GrapeCity.Drawing.Pen.DashPattern.html#GrapeCity_Drawing_Pen_DashPattern">DashPattern</a>
        </td>
        <td class="markdown level1 summary"><p>Gets an array of custom dashes and spaces.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Drawing_Pen_DashStyle" data-uid="GrapeCity.Drawing.Pen.DashStyle">
          <a class="xref" href="GrapeCity.Drawing.Pen.DashStyle.html#GrapeCity_Drawing_Pen_DashStyle">DashStyle</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the style used for dashed lines drawn with this <a class="xref" href="GrapeCity.Drawing.Pen.html">Pen</a>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Drawing_Pen_LineCap" data-uid="GrapeCity.Drawing.Pen.LineCap">
          <a class="xref" href="GrapeCity.Drawing.Pen.LineCap.html#GrapeCity_Drawing_Pen_LineCap">LineCap</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the line cap style used at the end of lines drawn with this <a class="xref" href="GrapeCity.Drawing.Pen.html">Pen</a>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Drawing_Pen_LineEndHead" data-uid="GrapeCity.Drawing.Pen.LineEndHead">
          <a class="xref" href="GrapeCity.Drawing.Pen.LineEndHead.html#GrapeCity_Drawing_Pen_LineEndHead">LineEndHead</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a custom cap to use at the beginning of lines drawn with this <a class="xref" href="GrapeCity.Drawing.Pen.html">Pen</a>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Drawing_Pen_LineEndTail" data-uid="GrapeCity.Drawing.Pen.LineEndTail">
          <a class="xref" href="GrapeCity.Drawing.Pen.LineEndTail.html#GrapeCity_Drawing_Pen_LineEndTail">LineEndTail</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a custom cap to use at the end of lines drawn with this <a class="xref" href="GrapeCity.Drawing.Pen.html">Pen</a>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Drawing_Pen_LineJoin" data-uid="GrapeCity.Drawing.Pen.LineJoin">
          <a class="xref" href="GrapeCity.Drawing.Pen.LineJoin.html#GrapeCity_Drawing_Pen_LineJoin">LineJoin</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the join style for the ends of two consecutive lines drawn with this <a class="xref" href="GrapeCity.Drawing.Pen.html">Pen</a>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Drawing_Pen_MiterLimit" data-uid="GrapeCity.Drawing.Pen.MiterLimit">
          <a class="xref" href="GrapeCity.Drawing.Pen.MiterLimit.html#GrapeCity_Drawing_Pen_MiterLimit">MiterLimit</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the limit of the thickness of the join on a mitered corner.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Drawing_Pen_Style" data-uid="GrapeCity.Drawing.Pen.Style">
          <a class="xref" href="GrapeCity.Drawing.Pen.Style.html#GrapeCity_Drawing_Pen_Style">Style</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a <a class="xref" href="GrapeCity.Drawing.LineStyle.html">LineStyle</a> value that specifies a compound pen. A compound pen draws a compound line made up of parallel lines and spaces.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Drawing_Pen_Visible" data-uid="GrapeCity.Drawing.Pen.Visible">
          <a class="xref" href="GrapeCity.Drawing.Pen.Visible.html#GrapeCity_Drawing_Pen_Visible">Visible</a>
        </td>
        <td class="markdown level1 summary"><p>Returns or sets an Boolean value that determines whether the object is visible. Read/write.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Drawing_Pen_Width" data-uid="GrapeCity.Drawing.Pen.Width">
          <a class="xref" href="GrapeCity.Drawing.Pen.Width.html#GrapeCity_Drawing_Pen_Width">Width</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the width of this <a class="xref" href="GrapeCity.Drawing.Pen.html">Pen</a> in pixels.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="GrapeCity_Drawing_Pen_Equals_GrapeCity_Drawing_Pen_" data-uid="GrapeCity.Drawing.Pen.Equals(GrapeCity.Drawing.Pen)">
          <a class="xref" href="GrapeCity.Drawing.Pen.Equals.html#GrapeCity_Drawing_Pen_Equals_GrapeCity_Drawing_Pen_">Equals(Pen)</a>
        </td>
        <td class="markdown level1 summary"><p>Indicates whether the current object is equal to another object of the same type.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Drawing_Pen_IsSet_GrapeCity_Drawing_Pen_Attributes_" data-uid="GrapeCity.Drawing.Pen.IsSet(GrapeCity.Drawing.Pen.Attributes)">
          <a class="xref" href="GrapeCity.Drawing.Pen.IsSet.html#GrapeCity_Drawing_Pen_IsSet_GrapeCity_Drawing_Pen_Attributes_">IsSet(Attributes)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a value indicating whether the specified attribute(s) is set.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
