# GrapeCity.Documents.Drawing.Pen

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="GrapeCity_Documents_Drawing_Pen" data-uid="GrapeCity.Documents.Drawing.Pen" class="text-break">Pen Class
</h1>
  <div class="markdown level0 summary"><p>Represents 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>
  <h6><strong>Namespace</strong>: <a class="xref" href="GrapeCity.Documents.Drawing.html">GrapeCity.Documents.Drawing</a></h6>
  <h6><strong>Assembly</strong>: DS.Documents.Imaging.dll</h6>
  <h5 id="GrapeCity_Documents_Drawing_Pen_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class Pen</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class 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_Documents_Drawing_Pen__ctor_GrapeCity_Documents_Drawing_Pen_" data-uid="GrapeCity.Documents.Drawing.Pen.#ctor(GrapeCity.Documents.Drawing.Pen)">
          <a class="xref" href="GrapeCity.Documents.Drawing.Pen.-ctor.html#GrapeCity_Documents_Drawing_Pen__ctor_GrapeCity_Documents_Drawing_Pen_">Pen(Pen)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a copy of a <a class="xref" href="GrapeCity.Documents.Drawing.Pen.html">Pen</a> object.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Drawing_Pen__ctor_System_Drawing_Color_" data-uid="GrapeCity.Documents.Drawing.Pen.#ctor(System.Drawing.Color)">
          <a class="xref" href="GrapeCity.Documents.Drawing.Pen.-ctor.html#GrapeCity_Documents_Drawing_Pen__ctor_System_Drawing_Color_">Pen(Color)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of a <a class="xref" href="GrapeCity.Documents.Drawing.Pen.html">Pen</a>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Drawing_Pen__ctor_System_Drawing_Color_System_Single_" data-uid="GrapeCity.Documents.Drawing.Pen.#ctor(System.Drawing.Color,System.Single)">
          <a class="xref" href="GrapeCity.Documents.Drawing.Pen.-ctor.html#GrapeCity_Documents_Drawing_Pen__ctor_System_Drawing_Color_System_Single_">Pen(Color, float)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of a <a class="xref" href="GrapeCity.Documents.Drawing.Pen.html">Pen</a>.</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_Documents_Drawing_Pen_Color" data-uid="GrapeCity.Documents.Drawing.Pen.Color">
          <a class="xref" href="GrapeCity.Documents.Drawing.Pen.Color.html#GrapeCity_Documents_Drawing_Pen_Color">Color</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the pen color.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Drawing_Pen_DashOffset" data-uid="GrapeCity.Documents.Drawing.Pen.DashOffset">
          <a class="xref" href="GrapeCity.Documents.Drawing.Pen.DashOffset.html#GrapeCity_Documents_Drawing_Pen_DashOffset">DashOffset</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the distance within the dash pattern where a dash begins. The default value is 0.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Drawing_Pen_DashPattern" data-uid="GrapeCity.Documents.Drawing.Pen.DashPattern">
          <a class="xref" href="GrapeCity.Documents.Drawing.Pen.DashPattern.html#GrapeCity_Documents_Drawing_Pen_DashPattern">DashPattern</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the custom dash pattern of lines drawn with this pen.
Setting this to a non-null value resets the <a class="xref" href="GrapeCity.Documents.Drawing.Pen.DashStyle.html#GrapeCity_Documents_Drawing_Pen_DashStyle">DashStyle</a>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Drawing_Pen_DashStyle" data-uid="GrapeCity.Documents.Drawing.Pen.DashStyle">
          <a class="xref" href="GrapeCity.Documents.Drawing.Pen.DashStyle.html#GrapeCity_Documents_Drawing_Pen_DashStyle">DashStyle</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the style of dashed lines drawn with this pen.
Setting this to anything other than custom resets the <a class="xref" href="GrapeCity.Documents.Drawing.Pen.DashPattern.html#GrapeCity_Documents_Drawing_Pen_DashPattern">DashPattern</a>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Drawing_Pen_LineCap" data-uid="GrapeCity.Documents.Drawing.Pen.LineCap">
          <a class="xref" href="GrapeCity.Documents.Drawing.Pen.LineCap.html#GrapeCity_Documents_Drawing_Pen_LineCap">LineCap</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the line cap style specifies the shape to be used at the ends of open subpaths (and dashes, if any) when they are stroked.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Drawing_Pen_LineJoin" data-uid="GrapeCity.Documents.Drawing.Pen.LineJoin">
          <a class="xref" href="GrapeCity.Documents.Drawing.Pen.LineJoin.html#GrapeCity_Documents_Drawing_Pen_LineJoin">LineJoin</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the line join style specifies the shape to be used at the corners of paths that are stroked.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Drawing_Pen_MiterLimit" data-uid="GrapeCity.Documents.Drawing.Pen.MiterLimit">
          <a class="xref" href="GrapeCity.Documents.Drawing.Pen.MiterLimit.html#GrapeCity_Documents_Drawing_Pen_MiterLimit">MiterLimit</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a maximum on the ratio of the miter length to the pen width. When the limit is exceeded, the join is converted from a miter to a bevel.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Drawing_Pen_Visible" data-uid="GrapeCity.Documents.Drawing.Pen.Visible">
          <a class="xref" href="GrapeCity.Documents.Drawing.Pen.Visible.html#GrapeCity_Documents_Drawing_Pen_Visible">Visible</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a value indicating whether the pen is really visible, i.e. its width greater than 0 and color is not transparent.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Drawing_Pen_Width" data-uid="GrapeCity.Documents.Drawing.Pen.Width">
          <a class="xref" href="GrapeCity.Documents.Drawing.Pen.Width.html#GrapeCity_Documents_Drawing_Pen_Width">Width</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the pen width, in units of the Graphics object used for drawing.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="operators">Operators
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="GrapeCity_Documents_Drawing_Pen_op_Implicit_System_Drawing_Color__GrapeCity_Documents_Drawing_Pen" data-uid="GrapeCity.Documents.Drawing.Pen.op_Implicit(System.Drawing.Color)~GrapeCity.Documents.Drawing.Pen">
          <a class="xref" href="GrapeCity.Documents.Drawing.Pen.op_Implicit.html#GrapeCity_Documents_Drawing_Pen_op_Implicit_System_Drawing_Color__GrapeCity_Documents_Drawing_Pen">implicit operator Pen(Color)</a>
        </td>
        <td class="markdown level1 summary"><p>Implicitly converts a <a class="xref" href="GrapeCity.Documents.Drawing.Pen.Color.html#GrapeCity_Documents_Drawing_Pen_Color">Color</a> to a <a class="xref" href="GrapeCity.Documents.Drawing.Pen.html">Pen</a>.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
