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

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Framework_Drawing_Gdi_SolidBrush__ctor_" data-uid="C1.Framework.Drawing.Gdi.SolidBrush.#ctor*">SolidBrush Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Framework_Drawing_Gdi_SolidBrush__ctor_" data-uid="C1.Framework.Drawing.Gdi.SolidBrush.#ctor*"></a>
<h4 id="C1_Framework_Drawing_Gdi_SolidBrush__ctor" data-uid="C1.Framework.Drawing.Gdi.SolidBrush.#ctor">SolidBrush()</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Framework.Drawing.Gdi.SolidBrush.html">SolidBrush</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 SolidBrush()</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New()</code></pre>
</div>
<h5 id="C1_Framework_Drawing_Gdi_SolidBrush__ctor_remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>The <b>Color </b> property is set to <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color.black">Black</a>
(default) and the <b>Width</b> property is set to 1 (default).</p>
</div>


<a id="C1_Framework_Drawing_Gdi_SolidBrush__ctor_" data-uid="C1.Framework.Drawing.Gdi.SolidBrush.#ctor*"></a>
<h4 id="C1_Framework_Drawing_Gdi_SolidBrush__ctor_System_Drawing_Color_" data-uid="C1.Framework.Drawing.Gdi.SolidBrush.#ctor(System.Drawing.Color)">SolidBrush(Color)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Framework.Drawing.Gdi.SolidBrush.html">SolidBrush</a>
class with the specified color.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public SolidBrush(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.SolidBrush.Color.html#C1_Framework_Drawing_Gdi_SolidBrush_Color">Color</a> structure that indicates the color
of this <a class="xref" href="C1.Framework.Drawing.Gdi.SolidBrush.html">SolidBrush</a> object.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_Framework_Drawing_Gdi_SolidBrush__ctor_System_Drawing_Color__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>The <a class="xref" href="C1.Framework.Drawing.Gdi.SolidBrush.Color.html#C1_Framework_Drawing_Gdi_SolidBrush_Color">Color</a> property is set to the color specified
by the <code>color</code> parameter. The <b>Width</b> property is set
to 1 (default).</p>
</div>
</div>
