# FarPoint.Web.Chart.SolidLine.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="FarPoint_Web_Chart_SolidLine__ctor_" data-uid="FarPoint.Web.Chart.SolidLine.#ctor*">SolidLine Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="FarPoint_Web_Chart_SolidLine__ctor_" data-uid="FarPoint.Web.Chart.SolidLine.#ctor*"></a>
<h4 id="FarPoint_Web_Chart_SolidLine__ctor_System_Drawing_Color_" data-uid="FarPoint.Web.Chart.SolidLine.#ctor(System.Drawing.Color)">SolidLine(Color)</h4>
<div class="markdown level1 summary"><p>Creates a line 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 SolidLine(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><span class="xref">Color</span></td>
      <td><span class="parametername">color</span></td>
      <td><p>Color of the line.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Web_Chart_SolidLine__ctor_" data-uid="FarPoint.Web.Chart.SolidLine.#ctor*"></a>
<h4 id="FarPoint_Web_Chart_SolidLine__ctor_System_Drawing_Color_System_Single_" data-uid="FarPoint.Web.Chart.SolidLine.#ctor(System.Drawing.Color,System.Single)">SolidLine(Color, float)</h4>
<div class="markdown level1 summary"><p>Creates a line 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 SolidLine(Color color, float width)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(color As Color, width As Single)</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><span class="xref">Color</span></td>
      <td><span class="parametername">color</span></td>
      <td><p>Color of the line.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">width</span></td>
      <td><p>Widht of the line.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="FarPoint_Web_Chart_SolidLine__ctor_System_Drawing_Color_System_Single__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>Width is measured in points.</p>
</div>
<h5 class="exceptions">Exceptions</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Condition</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.argumentoutofrangeexception">ArgumentOutOfRangeException</a></td>
      <td><p>width is less than or equal to zero or width is greater than 3.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
