# FarPoint.Win.Spread.GridLine.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="FarPoint_Win_Spread_GridLine__ctor_" data-uid="FarPoint.Win.Spread.GridLine.#ctor*">GridLine Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="FarPoint_Win_Spread_GridLine__ctor_" data-uid="FarPoint.Win.Spread.GridLine.#ctor*"></a>
<h4 id="FarPoint_Win_Spread_GridLine__ctor" data-uid="FarPoint.Win.Spread.GridLine.#ctor">GridLine()</h4>
<div class="markdown level1 summary"><p>Creates a new grid line.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public GridLine()</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New()</code></pre>
</div>


<a id="FarPoint_Win_Spread_GridLine__ctor_" data-uid="FarPoint.Win.Spread.GridLine.#ctor*"></a>
<h4 id="FarPoint_Win_Spread_GridLine__ctor_FarPoint_Win_Spread_GridLineType_" data-uid="FarPoint.Win.Spread.GridLine.#ctor(FarPoint.Win.Spread.GridLineType)">GridLine(GridLineType)</h4>
<div class="markdown level1 summary"><p>Creates a new grid line of the specified line type.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public GridLine(GridLineType type)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(type As GridLineType)</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="FarPoint.Win.Spread.GridLineType.html">GridLineType</a></td>
      <td><span class="parametername">type</span></td>
      <td><p>Type of grid line</p>
</td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Win_Spread_GridLine__ctor_" data-uid="FarPoint.Win.Spread.GridLine.#ctor*"></a>
<h4 id="FarPoint_Win_Spread_GridLine__ctor_FarPoint_Win_Spread_GridLineType_System_Drawing_Color_" data-uid="FarPoint.Win.Spread.GridLine.#ctor(FarPoint.Win.Spread.GridLineType,System.Drawing.Color)">GridLine(GridLineType, Color)</h4>
<div class="markdown level1 summary"><p>Creates a new grid line of the specified line type and color.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public GridLine(GridLineType type, Color color)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(type As GridLineType, 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="FarPoint.Win.Spread.GridLineType.html">GridLineType</a></td>
      <td><span class="parametername">type</span></td>
      <td><p>Type of grid line</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>Color of grid line</p>
</td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Win_Spread_GridLine__ctor_" data-uid="FarPoint.Win.Spread.GridLine.#ctor*"></a>
<h4 id="FarPoint_Win_Spread_GridLine__ctor_FarPoint_Win_Spread_GridLineType_System_Drawing_Color_System_Drawing_Color_System_Drawing_Color_" data-uid="FarPoint.Win.Spread.GridLine.#ctor(FarPoint.Win.Spread.GridLineType,System.Drawing.Color,System.Drawing.Color,System.Drawing.Color)">GridLine(GridLineType, Color, Color, Color)</h4>
<div class="markdown level1 summary"><p>Creates a new grid line of the specified line type and colors.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public GridLine(GridLineType type, Color color, Color highlightColor, Color shadowColor)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(type As GridLineType, color As Color, highlightColor As Color, shadowColor 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="FarPoint.Win.Spread.GridLineType.html">GridLineType</a></td>
      <td><span class="parametername">type</span></td>
      <td><p>Type of grid line</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>Color of grid line</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">highlightColor</span></td>
      <td><p>Highlight color for the grid line</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">shadowColor</span></td>
      <td><p>Shadow color for the grid line</p>
</td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Win_Spread_GridLine__ctor_" data-uid="FarPoint.Win.Spread.GridLine.#ctor*"></a>
<h4 id="FarPoint_Win_Spread_GridLine__ctor_FarPoint_Win_Spread_GridLineType_System_Drawing_Color_System_Drawing_Color_System_Drawing_Color_System_Int32_" data-uid="FarPoint.Win.Spread.GridLine.#ctor(FarPoint.Win.Spread.GridLineType,System.Drawing.Color,System.Drawing.Color,System.Drawing.Color,System.Int32)">GridLine(GridLineType, Color, Color, Color, int)</h4>
<div class="markdown level1 summary"><p>Creates a new grid line of the specified line type, colors, 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 GridLine(GridLineType type, Color color, Color highlightColor, Color shadowColor, int width)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(type As GridLineType, color As Color, highlightColor As Color, shadowColor 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="FarPoint.Win.Spread.GridLineType.html">GridLineType</a></td>
      <td><span class="parametername">type</span></td>
      <td><p>Type of grid line</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>Color of grid line</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">highlightColor</span></td>
      <td><p>Highlight color for the grid line</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">shadowColor</span></td>
      <td><p>Shadow color for the grid line</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>Width of grid line</p>
</td>
    </tr>
  </tbody>
</table>
<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.componentmodel.invalidenumargumentexception">InvalidEnumArgumentException</a></td>
      <td><p>The type is not one of the BorderStyle values.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.argumentoutofrangeexception">ArgumentOutOfRangeException</a></td>
      <td><p>The width is less that -1.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Win_Spread_GridLine__ctor_" data-uid="FarPoint.Win.Spread.GridLine.#ctor*"></a>
<h4 id="FarPoint_Win_Spread_GridLine__ctor_System_Runtime_Serialization_SerializationInfo_System_Runtime_Serialization_StreamingContext_" data-uid="FarPoint.Win.Spread.GridLine.#ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)">GridLine(SerializationInfo, StreamingContext)</h4>
<div class="markdown level1 summary"><p>Represents the grid lines.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public GridLine(SerializationInfo info, StreamingContext context)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(info As SerializationInfo, context As StreamingContext)</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.runtime.serialization.serializationinfo">SerializationInfo</a></td>
      <td><span class="parametername">info</span></td>
      <td><p>SerializationInfo object that holds the serialized object data</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.runtime.serialization.streamingcontext">StreamingContext</a></td>
      <td><span class="parametername">context</span></td>
      <td><p>StreamingContext object with contexual information about the source or destination of the serialization</p>
</td>
    </tr>
  </tbody>
</table>
</div>
