# C1.Framework.Drawing.Gdi.PatternPen.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Framework_Drawing_Gdi_PatternPen__ctor_" data-uid="C1.Framework.Drawing.Gdi.PatternPen.#ctor*">PatternPen Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Framework_Drawing_Gdi_PatternPen__ctor_" data-uid="C1.Framework.Drawing.Gdi.PatternPen.#ctor*"></a>
<h4 id="C1_Framework_Drawing_Gdi_PatternPen__ctor_System_Int32___System_Drawing_Color_" data-uid="C1.Framework.Drawing.Gdi.PatternPen.#ctor(System.Int32[],System.Drawing.Color)">PatternPen(int[], Color)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Framework.Drawing.Gdi.PatternPen.html">PatternPen</a> class.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public PatternPen(int[] pattern, Color color)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(pattern As Integer(), color As Color)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a>[]</td>
      <td><span class="parametername">pattern</span></td>
      <td><p>A <b>int</b> array indicate the pattern of current pen</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color">Color</a></td>
      <td><span class="parametername">color</span></td>
      <td><p>A <a class="xref" href="C1.Framework.Drawing.Gdi.PatternPen.Color.html#C1_Framework_Drawing_Gdi_PatternPen_Color">Color</a> indicates the color of the pen.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Framework_Drawing_Gdi_PatternPen__ctor_" data-uid="C1.Framework.Drawing.Gdi.PatternPen.#ctor*"></a>
<h4 id="C1_Framework_Drawing_Gdi_PatternPen__ctor_System_Int32___System_Drawing_Color_System_Int32_" data-uid="C1.Framework.Drawing.Gdi.PatternPen.#ctor(System.Int32[],System.Drawing.Color,System.Int32)">PatternPen(int[], Color, int)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Framework.Drawing.Gdi.PatternPen.html">PatternPen</a> class.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public PatternPen(int[] pattern, Color color, int width)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(pattern As Integer(), color As Color, width As Integer)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a>[]</td>
      <td><span class="parametername">pattern</span></td>
      <td><p>A <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a> array indicates the pattern of the pen.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color">Color</a></td>
      <td><span class="parametername">color</span></td>
      <td><p>A <a class="xref" href="C1.Framework.Drawing.Gdi.PatternPen.Color.html#C1_Framework_Drawing_Gdi_PatternPen_Color">Color</a> indicates the color of the pen.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">width</span></td>
      <td><p>An <b>int</b> indicates the width of the pen.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Framework_Drawing_Gdi_PatternPen__ctor_" data-uid="C1.Framework.Drawing.Gdi.PatternPen.#ctor*"></a>
<h4 id="C1_Framework_Drawing_Gdi_PatternPen__ctor_System_Int32___System_Drawing_Color_System_Int32_C1_Framework_Drawing_Gdi_DashCap_C1_Framework_Drawing_Gdi_LineJoin_" data-uid="C1.Framework.Drawing.Gdi.PatternPen.#ctor(System.Int32[],System.Drawing.Color,System.Int32,C1.Framework.Drawing.Gdi.DashCap,C1.Framework.Drawing.Gdi.LineJoin)">PatternPen(int[], Color, int, DashCap, LineJoin)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Framework.Drawing.Gdi.PatternPen.html">PatternPen</a> class.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public PatternPen(int[] pattern, Color color, int width, DashCap cap, LineJoin join)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(pattern As Integer(), color As Color, width As Integer, cap As DashCap, join As LineJoin)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a>[]</td>
      <td><span class="parametername">pattern</span></td>
      <td><p>A <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a> array indicates the pattern of the pen.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color">Color</a></td>
      <td><span class="parametername">color</span></td>
      <td><p>A <a class="xref" href="C1.Framework.Drawing.Gdi.PatternPen.Color.html#C1_Framework_Drawing_Gdi_PatternPen_Color">Color</a> indicates the color of the pen.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">width</span></td>
      <td><p>An <b>int</b> indicates the width of the pen.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Framework.Drawing.Gdi.DashCap.html">DashCap</a></td>
      <td><span class="parametername">cap</span></td>
      <td><p>A <a class="xref" href="C1.Framework.Drawing.Gdi.DashCap.html">DashCap</a> indicates the cap style of the pen.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Framework.Drawing.Gdi.LineJoin.html">LineJoin</a></td>
      <td><span class="parametername">join</span></td>
      <td><p>A <a class="xref" href="C1.Framework.Drawing.Gdi.LineJoin.html">LineJoin</a> indicates the join style of the pen.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
