# FarPoint.Win.ComplexBorder.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="FarPoint_Win_ComplexBorder__ctor_" data-uid="FarPoint.Win.ComplexBorder.#ctor*">ComplexBorder Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="FarPoint_Win_ComplexBorder__ctor_" data-uid="FarPoint.Win.ComplexBorder.#ctor*"></a>
<h4 id="FarPoint_Win_ComplexBorder__ctor_FarPoint_Win_ComplexBorderSide_" data-uid="FarPoint.Win.ComplexBorder.#ctor(FarPoint.Win.ComplexBorderSide)">ComplexBorder(ComplexBorderSide)</h4>
<div class="markdown level1 summary"><p>Creates a complex border with the specified ComplexBorderSide object<br>
to use for all four sides.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public ComplexBorder(ComplexBorderSide sides)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(sides As ComplexBorderSide)</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.ComplexBorderSide.html">ComplexBorderSide</a></td>
      <td><span class="parametername">sides</span></td>
      <td><p>Complex border side (ComplexBorderSide object) to use for all four sides</p>
</td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Win_ComplexBorder__ctor_" data-uid="FarPoint.Win.ComplexBorder.#ctor*"></a>
<h4 id="FarPoint_Win_ComplexBorder__ctor_FarPoint_Win_ComplexBorderSide_FarPoint_Win_ComplexBorderSide_FarPoint_Win_ComplexBorderSide_FarPoint_Win_ComplexBorderSide_" data-uid="FarPoint.Win.ComplexBorder.#ctor(FarPoint.Win.ComplexBorderSide,FarPoint.Win.ComplexBorderSide,FarPoint.Win.ComplexBorderSide,FarPoint.Win.ComplexBorderSide)">ComplexBorder(ComplexBorderSide, ComplexBorderSide, ComplexBorderSide, ComplexBorderSide)</h4>
<div class="markdown level1 summary"><p>Creates a complex border with the specified ComplexBorderSide objects for each side.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public ComplexBorder(ComplexBorderSide left, ComplexBorderSide top, ComplexBorderSide right, ComplexBorderSide bottom)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(left As ComplexBorderSide, top As ComplexBorderSide, right As ComplexBorderSide, bottom As ComplexBorderSide)</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.ComplexBorderSide.html">ComplexBorderSide</a></td>
      <td><span class="parametername">left</span></td>
      <td><p>Complex border side (ComplexBorderSide object) for the left side</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="FarPoint.Win.ComplexBorderSide.html">ComplexBorderSide</a></td>
      <td><span class="parametername">top</span></td>
      <td><p>Complex border side (ComplexBorderSide object) for the top</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="FarPoint.Win.ComplexBorderSide.html">ComplexBorderSide</a></td>
      <td><span class="parametername">right</span></td>
      <td><p>Complex border side (ComplexBorderSide object) for the right side</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="FarPoint.Win.ComplexBorderSide.html">ComplexBorderSide</a></td>
      <td><span class="parametername">bottom</span></td>
      <td><p>Complex border side (ComplexBorderSide object) for the bottom</p>
</td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Win_ComplexBorder__ctor_" data-uid="FarPoint.Win.ComplexBorder.#ctor*"></a>
<h4 id="FarPoint_Win_ComplexBorder__ctor_FarPoint_Win_ComplexBorderSide_FarPoint_Win_ComplexBorderSide_FarPoint_Win_ComplexBorderSide_FarPoint_Win_ComplexBorderSide_FarPoint_Win_ComplexBorderSide_System_Boolean_System_Boolean_" data-uid="FarPoint.Win.ComplexBorder.#ctor(FarPoint.Win.ComplexBorderSide,FarPoint.Win.ComplexBorderSide,FarPoint.Win.ComplexBorderSide,FarPoint.Win.ComplexBorderSide,FarPoint.Win.ComplexBorderSide,System.Boolean,System.Boolean)">ComplexBorder(ComplexBorderSide, ComplexBorderSide, ComplexBorderSide, ComplexBorderSide, ComplexBorderSide, bool, bool)</h4>
<div class="markdown level1 summary"><p>Creates a complex border with the specified ComplexBorderSide objects for each side.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public ComplexBorder(ComplexBorderSide left, ComplexBorderSide top, ComplexBorderSide right, ComplexBorderSide bottom, ComplexBorderSide diagonal, bool diagonalUp, bool diagonalDown)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(left As ComplexBorderSide, top As ComplexBorderSide, right As ComplexBorderSide, bottom As ComplexBorderSide, diagonal As ComplexBorderSide, diagonalUp As Boolean, diagonalDown As Boolean)</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.ComplexBorderSide.html">ComplexBorderSide</a></td>
      <td><span class="parametername">left</span></td>
      <td><p>Complex border side (ComplexBorderSide object) for the left side</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="FarPoint.Win.ComplexBorderSide.html">ComplexBorderSide</a></td>
      <td><span class="parametername">top</span></td>
      <td><p>Complex border side (ComplexBorderSide object) for the top</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="FarPoint.Win.ComplexBorderSide.html">ComplexBorderSide</a></td>
      <td><span class="parametername">right</span></td>
      <td><p>Complex border side (ComplexBorderSide object) for the right side</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="FarPoint.Win.ComplexBorderSide.html">ComplexBorderSide</a></td>
      <td><span class="parametername">bottom</span></td>
      <td><p>Complex border side (ComplexBorderSide object) for the bottom</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="FarPoint.Win.ComplexBorderSide.html">ComplexBorderSide</a></td>
      <td><span class="parametername">diagonal</span></td>
      <td><p>Complex border side (ComplexBorderSide object) for the diagonal</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">diagonalUp</span></td>
      <td><p>Show diagonally up</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">diagonalDown</span></td>
      <td><p>Show diagonally down</p>
</td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Win_ComplexBorder__ctor_" data-uid="FarPoint.Win.ComplexBorder.#ctor*"></a>
<h4 id="FarPoint_Win_ComplexBorder__ctor_System_Runtime_Serialization_SerializationInfo_System_Runtime_Serialization_StreamingContext_" data-uid="FarPoint.Win.ComplexBorder.#ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)">ComplexBorder(SerializationInfo, StreamingContext)</h4>
<div class="markdown level1 summary"><p>Creates a new complex border 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 ComplexBorder(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>
