# GrapeCity.Drawing.Pen.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Drawing_Pen__ctor_" data-uid="GrapeCity.Drawing.Pen.#ctor*">Pen Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Drawing_Pen__ctor_" data-uid="GrapeCity.Drawing.Pen.#ctor*"></a>
<h4 id="GrapeCity_Drawing_Pen__ctor_GrapeCity_Drawing_Brush_System_Double_" data-uid="GrapeCity.Drawing.Pen.#ctor(GrapeCity.Drawing.Brush,System.Double)">Pen(Brush, double)</h4>
<div 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>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public Pen(Brush brush, double width = 1)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(brush As Brush, Optional width As Double = 1)</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="GrapeCity.Drawing.Brush.html">Brush</a></td>
      <td><span class="parametername">brush</span></td>
      <td><p>A <a class="xref" href="GrapeCity.Drawing.Brush.html">Brush</a> that determines the characteristics of this <a class="xref" href="GrapeCity.Drawing.Pen.html">Pen</a>.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></td>
      <td><span class="parametername">width</span></td>
      <td><p>The width of the new <a class="xref" href="GrapeCity.Drawing.Pen.html">Pen</a>.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Drawing_Pen__ctor_" data-uid="GrapeCity.Drawing.Pen.#ctor*"></a>
<h4 id="GrapeCity_Drawing_Pen__ctor_GrapeCity_Core_SchemeColor_System_Double_" data-uid="GrapeCity.Drawing.Pen.#ctor(GrapeCity.Core.SchemeColor,System.Double)">Pen(SchemeColor, double)</h4>
<div 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>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public Pen(SchemeColor color, double width)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(color As SchemeColor, width As Double)</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="GrapeCity.Core.SchemeColor.html">SchemeColor</a></td>
      <td><span class="parametername">color</span></td>
      <td><p>A <a class="xref" href="GrapeCity.Core.SchemeColor.html">SchemeColor</a> that determines the characteristics of this <a class="xref" href="GrapeCity.Drawing.Pen.html">Pen</a>.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></td>
      <td><span class="parametername">width</span></td>
      <td><p>The width of the new <a class="xref" href="GrapeCity.Drawing.Pen.html">Pen</a>.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
