# C1.Document.Border

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Document_Border" data-uid="C1.Document.Border" class="text-break">Border Class
</h1>
  <div class="markdown level0 summary"><p>Represents a border of object.</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"><a class="xref" href="C1.Document.VisualPrimitive.html">VisualPrimitive</a></div>
    <div class="level2"><span class="xref">Border</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.componentmodel.inotifypropertychanged">INotifyPropertyChanged</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.icloneable">ICloneable</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Document.html">C1.Document</a></h6>
  <h6><strong>Assembly</strong>: C1.Document.dll</h6>
  <h5 id="C1_Document_Border_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[TypeConverter(typeof(BorderConverter))]
public class Border : VisualPrimitive, INotifyPropertyChanged, ICloneable</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">&lt;TypeConverter(GetType(BorderConverter))&gt;
Public Class Border
    Inherits VisualPrimitive
    Implements INotifyPropertyChanged, ICloneable</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="C1_Document_Border__ctor" data-uid="C1.Document.Border.#ctor">
          <a class="xref" href="C1.Document.Border.-ctor.html#C1_Document_Border__ctor">Border()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Document.Border.html">Border</a> class.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Document_Border__ctor_System_Double_System_Drawing_Color_C1_Document_DashStyle_" data-uid="C1.Document.Border.#ctor(System.Double,System.Drawing.Color,C1.Document.DashStyle)">
          <a class="xref" href="C1.Document.Border.-ctor.html#C1_Document_Border__ctor_System_Double_System_Drawing_Color_C1_Document_DashStyle_">Border(double, Color, DashStyle)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Document.Border.html">Border</a> class.</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="C1_Document_Border_Bottom" data-uid="C1.Document.Border.Bottom">
          <a class="xref" href="C1.Document.Border.Bottom.html#C1_Document_Border_Bottom">Bottom</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the <a class="xref" href="C1.Document.Line.html">Line</a> object defining bottom edge of the border.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Document_Border_Color" data-uid="C1.Document.Border.Color">
          <a class="xref" href="C1.Document.Border.Color.html#C1_Document_Border_Color">Color</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the color of all sides of the border.
If different sides of the border have different colors, gets Color.Empty.
Setting this property to null does not have any effect.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Document_Border_CornerRadius" data-uid="C1.Document.Border.CornerRadius">
          <a class="xref" href="C1.Document.Border.CornerRadius.html#C1_Document_Border_CornerRadius">CornerRadius</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the <a class="xref" href="C1.Document.Border.CornerRadius.html#C1_Document_Border_CornerRadius">CornerRadius</a> structure defining the corners' radii of the rounded border.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Document_Border_Left" data-uid="C1.Document.Border.Left">
          <a class="xref" href="C1.Document.Border.Left.html#C1_Document_Border_Left">Left</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the <a class="xref" href="C1.Document.Line.html">Line</a> object defining left edge of the border.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Document_Border_Right" data-uid="C1.Document.Border.Right">
          <a class="xref" href="C1.Document.Border.Right.html#C1_Document_Border_Right">Right</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the <a class="xref" href="C1.Document.Line.html">Line</a> object defining right edge of the border.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Document_Border_Style" data-uid="C1.Document.Border.Style">
          <a class="xref" href="C1.Document.Border.Style.html#C1_Document_Border_Style">Style</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the style of all sides of the border.
If different sides of the border have different styles, gets null.
Setting this property to null does not have any effect.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Document_Border_Top" data-uid="C1.Document.Border.Top">
          <a class="xref" href="C1.Document.Border.Top.html#C1_Document_Border_Top">Top</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the <a class="xref" href="C1.Document.Line.html">Line</a> object defining top edge of the border.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Document_Border_Width" data-uid="C1.Document.Border.Width">
          <a class="xref" href="C1.Document.Border.Width.html#C1_Document_Border_Width">Width</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the width of all sides of the border.
If different sides of the border have different widths, gets null.
Setting this property to null does not have any effect.</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="C1_Document_Border_AssignFrom_C1_Document_VisualPrimitive_" data-uid="C1.Document.Border.AssignFrom(C1.Document.VisualPrimitive)">
          <a class="xref" href="C1.Document.Border.AssignFrom.html#C1_Document_Border_AssignFrom_C1_Document_VisualPrimitive_">AssignFrom(VisualPrimitive)</a>
        </td>
        <td class="markdown level1 summary"><p>Assigns (copies) properties from another <a class="xref" href="C1.Document.Border.html">Border</a> to the current object.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Document_Border_Compare_C1_Document_VisualPrimitive_" data-uid="C1.Document.Border.Compare(C1.Document.VisualPrimitive)">
          <a class="xref" href="C1.Document.Border.Compare.html#C1_Document_Border_Compare_C1_Document_VisualPrimitive_">Compare(VisualPrimitive)</a>
        </td>
        <td class="markdown level1 summary"><p>Compares this <a class="xref" href="C1.Document.Border.html">Border</a> object with another <a class="xref" href="C1.Document.Border.html">Border</a> object
returns <b>true</b> if objects represent same border.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Document_Border_CreateSame" data-uid="C1.Document.Border.CreateSame">
          <a class="xref" href="C1.Document.Border.CreateSame.html#C1_Document_Border_CreateSame">CreateSame()</a>
        </td>
        <td class="markdown level1 summary"><p>Creates an object of the same type as the current object.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Document_Border_GetHashCodeInt" data-uid="C1.Document.Border.GetHashCodeInt">
          <a class="xref" href="C1.Document.Border.GetHashCodeInt.html#C1_Document_Border_GetHashCodeInt">GetHashCodeInt()</a>
        </td>
        <td class="markdown level1 summary"><p>For internal use.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Document_Border_Reset" data-uid="C1.Document.Border.Reset">
          <a class="xref" href="C1.Document.Border.Reset.html#C1_Document_Border_Reset">Reset()</a>
        </td>
        <td class="markdown level1 summary"><p>Resets all properties to default values.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Document_Border_ShouldSerialize" data-uid="C1.Document.Border.ShouldSerialize">
          <a class="xref" href="C1.Document.Border.ShouldSerialize.html#C1_Document_Border_ShouldSerialize">ShouldSerialize()</a>
        </td>
        <td class="markdown level1 summary"><p>Indicates whether any property of this object has changed from its default value.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Document_Border_ToString" data-uid="C1.Document.Border.ToString">
          <a class="xref" href="C1.Document.Border.ToString.html#C1_Document_Border_ToString">ToString()</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
    </tbody>
  </table>

</div>
