# FarPoint.Win.ComplexBorder

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="FarPoint_Win_ComplexBorder" data-uid="FarPoint.Win.ComplexBorder" class="text-break">ComplexBorder Class
</h1>
  <div class="markdown level0 summary"><p>Represents a complex border.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
    <div class="level1"><span class="xref">ComplexBorder</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="FarPoint.Win.IBorder.html">IBorder</a></div>
    <div><a class="xref" href="FarPoint.Win.IBorder2.html">IBorder2</a></div>
    <div><a class="xref" href="FarPoint.Win.ISerializeSupport.html">ISerializeSupport</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.runtime.serialization.iserializable">ISerializable</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.icloneable">ICloneable</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.icomparable">IComparable</a></div>
    <div><a class="xref" href="FarPoint.Win.IBorderRotationSupport.html">IBorderRotationSupport</a></div>
    <div><a class="xref" href="FarPoint.Win.IBorder3.html">IBorder3</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="FarPoint.Win.html">FarPoint.Win</a></h6>
  <h6><strong>Assembly</strong>: FarPoint.Win.dll</h6>
  <h5 id="FarPoint_Win_ComplexBorder_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[TypeConverter(typeof(BorderConverter))]
public class ComplexBorder : IBorder, IBorder2, ISerializeSupport, ISerializable, ICloneable, IComparable, IBorderRotationSupport, IBorder3</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">&lt;TypeConverter(GetType(BorderConverter))&gt;
Public Class ComplexBorder
    Implements IBorder, IBorder2, ISerializeSupport, ISerializable, ICloneable, IComparable, IBorderRotationSupport, IBorder3</code></pre>
  </div>
  <h3 id="constructors">Constructors
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="FarPoint_Win_ComplexBorder__ctor_FarPoint_Win_ComplexBorderSide_" data-uid="FarPoint.Win.ComplexBorder.#ctor(FarPoint.Win.ComplexBorderSide)">
          <a class="xref" href="FarPoint.Win.ComplexBorder.-ctor.html#FarPoint_Win_ComplexBorder__ctor_FarPoint_Win_ComplexBorderSide_">ComplexBorder(ComplexBorderSide)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a complex border with the specified ComplexBorderSide object<br>
to use for all four sides.</p>
</td>
      </tr>
      <tr>
        <td 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)">
          <a class="xref" href="FarPoint.Win.ComplexBorder.-ctor.html#FarPoint_Win_ComplexBorder__ctor_FarPoint_Win_ComplexBorderSide_FarPoint_Win_ComplexBorderSide_FarPoint_Win_ComplexBorderSide_FarPoint_Win_ComplexBorderSide_">ComplexBorder(ComplexBorderSide, ComplexBorderSide, ComplexBorderSide, ComplexBorderSide)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a complex border with the specified ComplexBorderSide objects for each side.</p>
</td>
      </tr>
      <tr>
        <td 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)">
          <a class="xref" href="FarPoint.Win.ComplexBorder.-ctor.html#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)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a complex border with the specified ComplexBorderSide objects for each side.</p>
</td>
      </tr>
      <tr>
        <td 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)">
          <a class="xref" href="FarPoint.Win.ComplexBorder.-ctor.html#FarPoint_Win_ComplexBorder__ctor_System_Runtime_Serialization_SerializationInfo_System_Runtime_Serialization_StreamingContext_">ComplexBorder(SerializationInfo, StreamingContext)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a new complex border object from serialization.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="properties">Properties
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="FarPoint_Win_ComplexBorder_Bottom" data-uid="FarPoint.Win.ComplexBorder.Bottom">
          <a class="xref" href="FarPoint.Win.ComplexBorder.Bottom.html#FarPoint_Win_ComplexBorder_Bottom">Bottom</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the ComplexBorderSide object for the bottom side.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_ComplexBorder_Diagonal" data-uid="FarPoint.Win.ComplexBorder.Diagonal">
          <a class="xref" href="FarPoint.Win.ComplexBorder.Diagonal.html#FarPoint_Win_ComplexBorder_Diagonal">Diagonal</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the ComplexBorderSide object for the diagonal side.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_ComplexBorder_DiagonalDown" data-uid="FarPoint.Win.ComplexBorder.DiagonalDown">
          <a class="xref" href="FarPoint.Win.ComplexBorder.DiagonalDown.html#FarPoint_Win_ComplexBorder_DiagonalDown">DiagonalDown</a>
        </td>
        <td class="markdown level1 summary"><p>Gets whether diagonally down.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_ComplexBorder_DiagonalUp" data-uid="FarPoint.Win.ComplexBorder.DiagonalUp">
          <a class="xref" href="FarPoint.Win.ComplexBorder.DiagonalUp.html#FarPoint_Win_ComplexBorder_DiagonalUp">DiagonalUp</a>
        </td>
        <td class="markdown level1 summary"><p>Gets whether diagonally up.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_ComplexBorder_Inset" data-uid="FarPoint.Win.ComplexBorder.Inset">
          <a class="xref" href="FarPoint.Win.ComplexBorder.Inset.html#FarPoint_Win_ComplexBorder_Inset">Inset</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the insets of the border.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_ComplexBorder_Left" data-uid="FarPoint.Win.ComplexBorder.Left">
          <a class="xref" href="FarPoint.Win.ComplexBorder.Left.html#FarPoint_Win_ComplexBorder_Left">Left</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the ComplexBorderSide object for the left side.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_ComplexBorder_Right" data-uid="FarPoint.Win.ComplexBorder.Right">
          <a class="xref" href="FarPoint.Win.ComplexBorder.Right.html#FarPoint_Win_ComplexBorder_Right">Right</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the ComplexBorderSide object for the right side.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_ComplexBorder_Top" data-uid="FarPoint.Win.ComplexBorder.Top">
          <a class="xref" href="FarPoint.Win.ComplexBorder.Top.html#FarPoint_Win_ComplexBorder_Top">Top</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the ComplexBorderSide object for the top side.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="FarPoint_Win_ComplexBorder_Clone" data-uid="FarPoint.Win.ComplexBorder.Clone">
          <a class="xref" href="FarPoint.Win.ComplexBorder.Clone.html#FarPoint_Win_ComplexBorder_Clone">Clone()</a>
        </td>
        <td class="markdown level1 summary"><p>Clones the border object.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_ComplexBorder_CompareTo_System_Object_" data-uid="FarPoint.Win.ComplexBorder.CompareTo(System.Object)">
          <a class="xref" href="FarPoint.Win.ComplexBorder.CompareTo.html#FarPoint_Win_ComplexBorder_CompareTo_System_Object_">CompareTo(object)</a>
        </td>
        <td class="markdown level1 summary"><p>Compares the current object with another object of the same type.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_ComplexBorder_Deserialize_System_Xml_XmlNodeReader_" data-uid="FarPoint.Win.ComplexBorder.Deserialize(System.Xml.XmlNodeReader)">
          <a class="xref" href="FarPoint.Win.ComplexBorder.Deserialize.html#FarPoint_Win_ComplexBorder_Deserialize_System_Xml_XmlNodeReader_">Deserialize(XmlNodeReader)</a>
        </td>
        <td class="markdown level1 summary"><p>Loads the object from XML.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_ComplexBorder_Equals_System_Object_" data-uid="FarPoint.Win.ComplexBorder.Equals(System.Object)">
          <a class="xref" href="FarPoint.Win.ComplexBorder.Equals.html#FarPoint_Win_ComplexBorder_Equals_System_Object_">Equals(object)</a>
        </td>
        <td class="markdown level1 summary"><p>Compares the specified object to this ComplexBorder object.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_ComplexBorder_GetHashCode" data-uid="FarPoint.Win.ComplexBorder.GetHashCode">
          <a class="xref" href="FarPoint.Win.ComplexBorder.GetHashCode.html#FarPoint_Win_ComplexBorder_GetHashCode">GetHashCode()</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the hash code of the ComplexBorder object.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_ComplexBorder_GetObjectData_System_Runtime_Serialization_SerializationInfo_System_Runtime_Serialization_StreamingContext_" data-uid="FarPoint.Win.ComplexBorder.GetObjectData(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)">
          <a class="xref" href="FarPoint.Win.ComplexBorder.GetObjectData.html#FarPoint_Win_ComplexBorder_GetObjectData_System_Runtime_Serialization_SerializationInfo_System_Runtime_Serialization_StreamingContext_">GetObjectData(SerializationInfo, StreamingContext)</a>
        </td>
        <td class="markdown level1 summary"><p>Serializes the complex border object.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_ComplexBorder_Paint_FarPoint_Win_IBorderGraphics_System_Single_System_Single_System_Single_System_Single_System_Boolean_" data-uid="FarPoint.Win.ComplexBorder.Paint(FarPoint.Win.IBorderGraphics,System.Single,System.Single,System.Single,System.Single,System.Boolean)">
          <a class="xref" href="FarPoint.Win.ComplexBorder.Paint.html#FarPoint_Win_ComplexBorder_Paint_FarPoint_Win_IBorderGraphics_System_Single_System_Single_System_Single_System_Single_System_Boolean_">Paint(IBorderGraphics, float, float, float, float, bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Paints (prints) to PDF the complex border inside the specified rectangle.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_ComplexBorder_Paint_System_Drawing_Graphics_System_Int32_System_Int32_System_Int32_System_Int32_" data-uid="FarPoint.Win.ComplexBorder.Paint(System.Drawing.Graphics,System.Int32,System.Int32,System.Int32,System.Int32)">
          <a class="xref" href="FarPoint.Win.ComplexBorder.Paint.html#FarPoint_Win_ComplexBorder_Paint_System_Drawing_Graphics_System_Int32_System_Int32_System_Int32_System_Int32_">Paint(Graphics, int, int, int, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Paints the complex border inside the specified rectangle.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_ComplexBorder_Paint_System_Drawing_Graphics_System_Int32_System_Int32_System_Int32_System_Int32_System_Boolean_" data-uid="FarPoint.Win.ComplexBorder.Paint(System.Drawing.Graphics,System.Int32,System.Int32,System.Int32,System.Int32,System.Boolean)">
          <a class="xref" href="FarPoint.Win.ComplexBorder.Paint.html#FarPoint_Win_ComplexBorder_Paint_System_Drawing_Graphics_System_Int32_System_Int32_System_Int32_System_Int32_System_Boolean_">Paint(Graphics, int, int, int, int, bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Paints the complex border inside the specified rectangle.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_ComplexBorder_Serialize_System_Xml_XmlTextWriter_" data-uid="FarPoint.Win.ComplexBorder.Serialize(System.Xml.XmlTextWriter)">
          <a class="xref" href="FarPoint.Win.ComplexBorder.Serialize.html#FarPoint_Win_ComplexBorder_Serialize_System_Xml_XmlTextWriter_">Serialize(XmlTextWriter)</a>
        </td>
        <td class="markdown level1 summary"><p>Saves the object to XML.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
