# C1.WPF.Word.Pen

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_WPF_Word_Pen" data-uid="C1.WPF.Word.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="C1.WPF.Word.html">C1.WPF.Word</a></h6>
  <h6><strong>Assembly</strong>: C1.WPF.Word.4.6.2.dll</h6>
  <h5 id="C1_WPF_Word_Pen_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp 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="C1_WPF_Word_Pen__ctor_System_Windows_Media_Color_" data-uid="C1.WPF.Word.Pen.#ctor(System.Windows.Media.Color)">
          <a class="xref" href="C1.WPF.Word.Pen.-ctor.html#C1_WPF_Word_Pen__ctor_System_Windows_Media_Color_">Pen(Color)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of a <a class="xref" href="C1.WPF.Word.Pen.html">Pen</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Word_Pen__ctor_System_Windows_Media_Color_System_Double_" data-uid="C1.WPF.Word.Pen.#ctor(System.Windows.Media.Color,System.Double)">
          <a class="xref" href="C1.WPF.Word.Pen.-ctor.html#C1_WPF_Word_Pen__ctor_System_Windows_Media_Color_System_Double_">Pen(Color, double)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of a <a class="xref" href="C1.WPF.Word.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="C1_WPF_Word_Pen_Color" data-uid="C1.WPF.Word.Pen.Color">
          <a class="xref" href="C1.WPF.Word.Pen.Color.html#C1_WPF_Word_Pen_Color">Color</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the pen color.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Word_Pen_DashOffset" data-uid="C1.WPF.Word.Pen.DashOffset">
          <a class="xref" href="C1.WPF.Word.Pen.DashOffset.html#C1_WPF_Word_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="C1_WPF_Word_Pen_DashPattern" data-uid="C1.WPF.Word.Pen.DashPattern">
          <a class="xref" href="C1.WPF.Word.Pen.DashPattern.html#C1_WPF_Word_Pen_DashPattern">DashPattern</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the custom dash pattern of lines drawn with this pen.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Word_Pen_DashStyle" data-uid="C1.WPF.Word.Pen.DashStyle">
          <a class="xref" href="C1.WPF.Word.Pen.DashStyle.html#C1_WPF_Word_Pen_DashStyle">DashStyle</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the style of dashed lines drawn with this pen.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Word_Pen_LineJoin" data-uid="C1.WPF.Word.Pen.LineJoin">
          <a class="xref" href="C1.WPF.Word.Pen.LineJoin.html#C1_WPF_Word_Pen_LineJoin">LineJoin</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the style used to join lines drawn with this pen.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Word_Pen_StartCap" data-uid="C1.WPF.Word.Pen.StartCap">
          <a class="xref" href="C1.WPF.Word.Pen.StartCap.html#C1_WPF_Word_Pen_StartCap">StartCap</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the cap style used to draw line ends with this pen.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Word_Pen_Width" data-uid="C1.WPF.Word.Pen.Width">
          <a class="xref" href="C1.WPF.Word.Pen.Width.html#C1_WPF_Word_Pen_Width">Width</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the pen width.</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="C1_WPF_Word_Pen_op_Implicit_System_Windows_Media_Color__C1_WPF_Word_Pen" data-uid="C1.WPF.Word.Pen.op_Implicit(System.Windows.Media.Color)~C1.WPF.Word.Pen">
          <a class="xref" href="C1.WPF.Word.Pen.op_Implicit.html#C1_WPF_Word_Pen_op_Implicit_System_Windows_Media_Color__C1_WPF_Word_Pen">implicit operator Pen(Color)</a>
        </td>
        <td class="markdown level1 summary"><p>Implicitly converts a <a class="xref" href="C1.WPF.Word.Pen.Color.html#C1_WPF_Word_Pen_Color">Color</a> to a <a class="xref" href="C1.WPF.Word.Pen.html">Pen</a>.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
