# FarPoint.Win.ComplexBorderSide.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="FarPoint_Win_ComplexBorderSide__ctor_" data-uid="FarPoint.Win.ComplexBorderSide.#ctor*">ComplexBorderSide Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="FarPoint_Win_ComplexBorderSide__ctor_" data-uid="FarPoint.Win.ComplexBorderSide.#ctor*"></a>
<h4 id="FarPoint_Win_ComplexBorderSide__ctor" data-uid="FarPoint.Win.ComplexBorderSide.#ctor">ComplexBorderSide()</h4>
<div class="markdown level1 summary"><p>Creates one side of a four-sided, complex border with default color SystemColors.WindowFrame,
default width of 1, default dash style of Solid, and empty dash pattern and compound array.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public ComplexBorderSide()</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New()</code></pre>
</div>


<a id="FarPoint_Win_ComplexBorderSide__ctor_" data-uid="FarPoint.Win.ComplexBorderSide.#ctor*"></a>
<h4 id="FarPoint_Win_ComplexBorderSide__ctor_FarPoint_Win_ComplexBorderSideStyle_" data-uid="FarPoint.Win.ComplexBorderSide.#ctor(FarPoint.Win.ComplexBorderSideStyle)">ComplexBorderSide(ComplexBorderSideStyle)</h4>
<div class="markdown level1 summary"><p>Creates one side of a four-sided, complex border with settings equivalent to the specified side style.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public ComplexBorderSide(ComplexBorderSideStyle sideStyle)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(sideStyle As ComplexBorderSideStyle)</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.ComplexBorderSideStyle.html">ComplexBorderSideStyle</a></td>
      <td><span class="parametername">sideStyle</span></td>
      <td><p>Border style for one side</p>
</td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Win_ComplexBorderSide__ctor_" data-uid="FarPoint.Win.ComplexBorderSide.#ctor*"></a>
<h4 id="FarPoint_Win_ComplexBorderSide__ctor_FarPoint_Win_ComplexBorderSideStyle_System_Drawing_Color_" data-uid="FarPoint.Win.ComplexBorderSide.#ctor(FarPoint.Win.ComplexBorderSideStyle,System.Drawing.Color)">ComplexBorderSide(ComplexBorderSideStyle, Color)</h4>
<div class="markdown level1 summary"><p>Creates one side of a four-sided, complex border with the specified style 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 ComplexBorderSide(ComplexBorderSideStyle sideStyle, Color sideColor)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(sideStyle As ComplexBorderSideStyle, sideColor 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.ComplexBorderSideStyle.html">ComplexBorderSideStyle</a></td>
      <td><span class="parametername">sideStyle</span></td>
      <td><p>Style of the border side</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">sideColor</span></td>
      <td><p>Color of the border side</p>
</td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Win_ComplexBorderSide__ctor_" data-uid="FarPoint.Win.ComplexBorderSide.#ctor*"></a>
<h4 id="FarPoint_Win_ComplexBorderSide__ctor_System_Drawing_Color_" data-uid="FarPoint.Win.ComplexBorderSide.#ctor(System.Drawing.Color)">ComplexBorderSide(Color)</h4>
<div class="markdown level1 summary"><p>Creates one side of a four-sided, complex border 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 ComplexBorderSide(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>Color for the border side</p>
</td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Win_ComplexBorderSide__ctor_" data-uid="FarPoint.Win.ComplexBorderSide.#ctor*"></a>
<h4 id="FarPoint_Win_ComplexBorderSide__ctor_System_Drawing_Color_System_Int32_" data-uid="FarPoint.Win.ComplexBorderSide.#ctor(System.Drawing.Color,System.Int32)">ComplexBorderSide(Color, int)</h4>
<div class="markdown level1 summary"><p>Creates one side of a four-sided, complex border 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 ComplexBorderSide(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>Color for this side of the border</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 this side of the border, in pixels</p>
</td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Win_ComplexBorderSide__ctor_" data-uid="FarPoint.Win.ComplexBorderSide.#ctor*"></a>
<h4 id="FarPoint_Win_ComplexBorderSide__ctor_System_Drawing_Color_System_Int32_System_Drawing_Drawing2D_DashStyle_" data-uid="FarPoint.Win.ComplexBorderSide.#ctor(System.Drawing.Color,System.Int32,System.Drawing.Drawing2D.DashStyle)">ComplexBorderSide(Color, int, DashStyle)</h4>
<div class="markdown level1 summary"><p>Creates one side of a four-sided, complex border with the specified color, width, and dash style.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public ComplexBorderSide(Color color, int width, DashStyle dashStyle)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(color As Color, width As Integer, dashStyle As DashStyle)</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>Color for this side of the border</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 this side of the border, in pixels</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.drawing2d.dashstyle">DashStyle</a></td>
      <td><span class="parametername">dashStyle</span></td>
      <td><p>Style of dashed line for this side of the border;
a setting of the .NET Framework's DashStyle enumeration</p>
</td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Win_ComplexBorderSide__ctor_" data-uid="FarPoint.Win.ComplexBorderSide.#ctor*"></a>
<h4 id="FarPoint_Win_ComplexBorderSide__ctor_System_Drawing_Color_System_Int32_System_Drawing_Drawing2D_DashStyle_System_Single___System_Single___" data-uid="FarPoint.Win.ComplexBorderSide.#ctor(System.Drawing.Color,System.Int32,System.Drawing.Drawing2D.DashStyle,System.Single[],System.Single[])">ComplexBorderSide(Color, int, DashStyle, float[], float[])</h4>
<div class="markdown level1 summary"><p>Creates one side of a four-sided, complex border with the specified color, width,
dash style, dash pattern, and compound array.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public ComplexBorderSide(Color color, int width, DashStyle dashStyle, float[] dashPattern, float[] compoundArray)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(color As Color, width As Integer, dashStyle As DashStyle, dashPattern As Single(), compoundArray 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><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 for this side of the border</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 this side of the border, in pixels</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.drawing2d.dashstyle">DashStyle</a></td>
      <td><span class="parametername">dashStyle</span></td>
      <td><p>Style of dashed line for this side of the border;
a setting of the DashStyle enumeration of the Microsoft .NET Framework</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a>[]</td>
      <td><span class="parametername">dashPattern</span></td>
      <td><p>Pattern of dashes for this side of the border</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a>[]</td>
      <td><span class="parametername">compoundArray</span></td>
      <td><p>Array of values that specify a compound line made up of parallel lines and spaces</p>
</td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Win_ComplexBorderSide__ctor_" data-uid="FarPoint.Win.ComplexBorderSide.#ctor*"></a>
<h4 id="FarPoint_Win_ComplexBorderSide__ctor_System_Boolean_System_Drawing_Color_System_Int32_System_Drawing_Drawing2D_DashStyle_System_Single___System_Single___" data-uid="FarPoint.Win.ComplexBorderSide.#ctor(System.Boolean,System.Drawing.Color,System.Int32,System.Drawing.Drawing2D.DashStyle,System.Single[],System.Single[])">ComplexBorderSide(bool, Color, int, DashStyle, float[], float[])</h4>
<div class="markdown level1 summary"><p>Creates one side of a four-sided, complex border with the specified color, width,
dash style, dash pattern and compound array, and whether to draw the side.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public ComplexBorderSide(bool draw, Color color, int width, DashStyle dashStyle, float[] dashPattern, float[] compoundArray)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(draw As Boolean, color As Color, width As Integer, dashStyle As DashStyle, dashPattern As Single(), compoundArray 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><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">draw</span></td>
      <td><p>Whether to draw that size of the border</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 for this side of the border</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 this side of the border, in pixels</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.drawing2d.dashstyle">DashStyle</a></td>
      <td><span class="parametername">dashStyle</span></td>
      <td><p>Style of dashed line for this side of the border;
a setting of the DashStyle enumeration of the Microsoft .NET Framework</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a>[]</td>
      <td><span class="parametername">dashPattern</span></td>
      <td><p>Pattern of dashes for this side of the border</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a>[]</td>
      <td><span class="parametername">compoundArray</span></td>
      <td><p>Array of values that specify a compound line made up of parallel lines and spaces.
The elements in the array must be in increasing order, not less than 0, and not greater than 1.
The number of elements in the array must be even.</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.argumentexception">ArgumentException</a></td>
      <td><p>Specified dash pattern not valid; must be positive value</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.argumentexception">ArgumentException</a></td>
      <td><p>Specified compound array values not valid; must be between 0 and 1</p>
</td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Win_ComplexBorderSide__ctor_" data-uid="FarPoint.Win.ComplexBorderSide.#ctor*"></a>
<h4 id="FarPoint_Win_ComplexBorderSide__ctor_System_Runtime_Serialization_SerializationInfo_System_Runtime_Serialization_StreamingContext_" data-uid="FarPoint.Win.ComplexBorderSide.#ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)">ComplexBorderSide(SerializationInfo, StreamingContext)</h4>
<div class="markdown level1 summary"><p>Creates a new complex border side object from serialization.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">protected ComplexBorderSide(SerializationInfo info, StreamingContext context)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Protected 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>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>Contexual information about the source or destination of the serialization</p>
</td>
    </tr>
  </tbody>
</table>
</div>
