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

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Framework_Drawing_Gdi_SolidPen__ctor_" data-uid="C1.Framework.Drawing.Gdi.SolidPen.#ctor*">SolidPen Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Framework_Drawing_Gdi_SolidPen__ctor_" data-uid="C1.Framework.Drawing.Gdi.SolidPen.#ctor*"></a>
<h4 id="C1_Framework_Drawing_Gdi_SolidPen__ctor" data-uid="C1.Framework.Drawing.Gdi.SolidPen.#ctor">SolidPen()</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Framework.Drawing.Gdi.Pen.html">Pen</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 SolidPen()</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New()</code></pre>
</div>


<a id="C1_Framework_Drawing_Gdi_SolidPen__ctor_" data-uid="C1.Framework.Drawing.Gdi.SolidPen.#ctor*"></a>
<h4 id="C1_Framework_Drawing_Gdi_SolidPen__ctor_System_Drawing_Color_" data-uid="C1.Framework.Drawing.Gdi.SolidPen.#ctor(System.Drawing.Color)">SolidPen(Color)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Framework.Drawing.Gdi.Pen.html">Pen</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 SolidPen(Color color)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(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.drawing.color">Color</a></td>
      <td><span class="parametername">color</span></td>
      <td><p>A <a class="xref" href="C1.Framework.Drawing.Gdi.SolidPen.Color.html#C1_Framework_Drawing_Gdi_SolidPen_Color">Color</a> indicates the color of the pen.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Framework_Drawing_Gdi_SolidPen__ctor_" data-uid="C1.Framework.Drawing.Gdi.SolidPen.#ctor*"></a>
<h4 id="C1_Framework_Drawing_Gdi_SolidPen__ctor_System_Drawing_Color_System_Int32_" data-uid="C1.Framework.Drawing.Gdi.SolidPen.#ctor(System.Drawing.Color,System.Int32)">SolidPen(Color, int)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Framework.Drawing.Gdi.Pen.html">Pen</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 SolidPen(Color color, int width)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(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.drawing.color">Color</a></td>
      <td><span class="parametername">color</span></td>
      <td><p>A <a class="xref" href="C1.Framework.Drawing.Gdi.SolidPen.Color.html#C1_Framework_Drawing_Gdi_SolidPen_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_SolidPen__ctor_" data-uid="C1.Framework.Drawing.Gdi.SolidPen.#ctor*"></a>
<h4 id="C1_Framework_Drawing_Gdi_SolidPen__ctor_System_Drawing_Color_System_Int32_C1_Framework_Drawing_Gdi_DashCap_C1_Framework_Drawing_Gdi_LineJoin_" data-uid="C1.Framework.Drawing.Gdi.SolidPen.#ctor(System.Drawing.Color,System.Int32,C1.Framework.Drawing.Gdi.DashCap,C1.Framework.Drawing.Gdi.LineJoin)">SolidPen(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.SolidPen.html">SolidPen</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 SolidPen(Color color, int width, DashCap cap, LineJoin join)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(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.drawing.color">Color</a></td>
      <td><span class="parametername">color</span></td>
      <td><p>A <a class="xref" href="C1.Framework.Drawing.Gdi.SolidPen.Color.html#C1_Framework_Drawing_Gdi_SolidPen_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>
