# C1.Document.Line

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Document_Line" data-uid="C1.Document.Line" class="text-break">Line Class
</h1>
  <div class="markdown level0 summary"><p>Represents a line in <a class="xref" href="C1.Document.C1Document.html">C1Document</a> and &quot;C1FlexReport&quot;.
This class is used to specifiy borders in the <a class="xref" href="C1.Document.Border.html">Border</a> class,
line style used by shapes, and so on.</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">Line</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_Line_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[TypeConverter(typeof(LineConverter))]
public class Line : VisualPrimitive, INotifyPropertyChanged, ICloneable</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">&lt;TypeConverter(GetType(LineConverter))&gt;
Public Class Line
    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_Line__ctor" data-uid="C1.Document.Line.#ctor">
          <a class="xref" href="C1.Document.Line.-ctor.html#C1_Document_Line__ctor">Line()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Document.Line.html">Line</a> class.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Document_Line__ctor_System_Double_System_Drawing_Color_C1_Document_DashStyle_" data-uid="C1.Document.Line.#ctor(System.Double,System.Drawing.Color,C1.Document.DashStyle)">
          <a class="xref" href="C1.Document.Line.-ctor.html#C1_Document_Line__ctor_System_Double_System_Drawing_Color_C1_Document_DashStyle_">Line(double, Color, DashStyle)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Document.Line.html">Line</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_Line_ActualWidth" data-uid="C1.Document.Line.ActualWidth">
          <a class="xref" href="C1.Document.Line.ActualWidth.html#C1_Document_Line_ActualWidth">ActualWidth</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the actual width of the line.
Unlike the <a class="xref" href="C1.Document.Line.Width.html#C1_Document_Line_Width">Width</a> property, this returns 0
if <a class="xref" href="C1.Document.Line.Style.html#C1_Document_Line_Style">Style</a> is <a class="xref" href="C1.Document.DashStyle.html#C1_Document_DashStyle_None">None</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Document_Line_Color" data-uid="C1.Document.Line.Color">
          <a class="xref" href="C1.Document.Line.Color.html#C1_Document_Line_Color">Color</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the line color.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Document_Line_Style" data-uid="C1.Document.Line.Style">
          <a class="xref" href="C1.Document.Line.Style.html#C1_Document_Line_Style">Style</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the line style.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Document_Line_Width" data-uid="C1.Document.Line.Width">
          <a class="xref" href="C1.Document.Line.Width.html#C1_Document_Line_Width">Width</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the line width.</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_Line_AssignFrom_C1_Document_VisualPrimitive_" data-uid="C1.Document.Line.AssignFrom(C1.Document.VisualPrimitive)">
          <a class="xref" href="C1.Document.Line.AssignFrom.html#C1_Document_Line_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.Line.html">Line</a> to the current object.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Document_Line_Compare_C1_Document_VisualPrimitive_" data-uid="C1.Document.Line.Compare(C1.Document.VisualPrimitive)">
          <a class="xref" href="C1.Document.Line.Compare.html#C1_Document_Line_Compare_C1_Document_VisualPrimitive_">Compare(VisualPrimitive)</a>
        </td>
        <td class="markdown level1 summary"><p>Compares this <a class="xref" href="C1.Document.Line.html">Line</a> object with another <a class="xref" href="C1.Document.Line.html">Line</a> object
returns <b>true</b> if objects represent same border.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Document_Line_CreateSame" data-uid="C1.Document.Line.CreateSame">
          <a class="xref" href="C1.Document.Line.CreateSame.html#C1_Document_Line_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_Line_GetHashCodeInt" data-uid="C1.Document.Line.GetHashCodeInt">
          <a class="xref" href="C1.Document.Line.GetHashCodeInt.html#C1_Document_Line_GetHashCodeInt">GetHashCodeInt()</a>
        </td>
        <td class="markdown level1 summary"><p>For internal use.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Document_Line_Reset" data-uid="C1.Document.Line.Reset">
          <a class="xref" href="C1.Document.Line.Reset.html#C1_Document_Line_Reset">Reset()</a>
        </td>
        <td class="markdown level1 summary"><p>Resets all properties to default values.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Document_Line_ShouldSerialize" data-uid="C1.Document.Line.ShouldSerialize">
          <a class="xref" href="C1.Document.Line.ShouldSerialize.html#C1_Document_Line_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>
    </tbody>
  </table>

</div>
