# C1.Win.C1Input.Margins

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Win_C1Input_Margins" data-uid="C1.Win.C1Input.Margins" class="text-break">Margins Class
</h1>
  <div class="markdown level0 summary"><p>Represents the four margins around a control’s content.</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">Margins</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <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.Win.C1Input.html">C1.Win.C1Input</a></h6>
  <h6><strong>Assembly</strong>: C1.Win.C1Input.4.8.dll</h6>
  <h5 id="C1_Win_C1Input_Margins_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[TypeConverter(typeof(MarginsConverter))]
public class Margins : ICloneable</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">&lt;TypeConverter(GetType(MarginsConverter))&gt;
Public Class Margins
    Implements 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_Win_C1Input_Margins__ctor" data-uid="C1.Win.C1Input.Margins.#ctor">
          <a class="xref" href="C1.Win.C1Input.Margins.-ctor.html#C1_Win_C1Input_Margins__ctor">Margins()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the Margins class.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Input_Margins__ctor_System_Int32_System_Int32_System_Int32_System_Int32_" data-uid="C1.Win.C1Input.Margins.#ctor(System.Int32,System.Int32,System.Int32,System.Int32)">
          <a class="xref" href="C1.Win.C1Input.Margins.-ctor.html#C1_Win_C1Input_Margins__ctor_System_Int32_System_Int32_System_Int32_System_Int32_">Margins(int, int, int, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the Margins 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_Win_C1Input_Margins_Bottom" data-uid="C1.Win.C1Input.Margins.Bottom">
          <a class="xref" href="C1.Win.C1Input.Margins.Bottom.html#C1_Win_C1Input_Margins_Bottom">Bottom</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the bottom margin, in pixels.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Input_Margins_Left" data-uid="C1.Win.C1Input.Margins.Left">
          <a class="xref" href="C1.Win.C1Input.Margins.Left.html#C1_Win_C1Input_Margins_Left">Left</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the left margin, in pixels.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Input_Margins_Right" data-uid="C1.Win.C1Input.Margins.Right">
          <a class="xref" href="C1.Win.C1Input.Margins.Right.html#C1_Win_C1Input_Margins_Right">Right</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the right margin, in pixels.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Input_Margins_Top" data-uid="C1.Win.C1Input.Margins.Top">
          <a class="xref" href="C1.Win.C1Input.Margins.Top.html#C1_Win_C1Input_Margins_Top">Top</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the top margin, in pixels.</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_Win_C1Input_Margins_Clone" data-uid="C1.Win.C1Input.Margins.Clone">
          <a class="xref" href="C1.Win.C1Input.Margins.Clone.html#C1_Win_C1Input_Margins_Clone">Clone()</a>
        </td>
        <td class="markdown level1 summary"><p>Creates an identical copy of the current Margins.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Input_Margins_Equals_System_Object_" data-uid="C1.Win.C1Input.Margins.Equals(System.Object)">
          <a class="xref" href="C1.Win.C1Input.Margins.Equals.html#C1_Win_C1Input_Margins_Equals_System_Object_">Equals(object)</a>
        </td>
        <td class="markdown level1 summary"><p>Overloaded. Determines whether two Object instances are equal.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Input_Margins_GetHashCode" data-uid="C1.Win.C1Input.Margins.GetHashCode">
          <a class="xref" href="C1.Win.C1Input.Margins.GetHashCode.html#C1_Win_C1Input_Margins_GetHashCode">GetHashCode()</a>
        </td>
        <td class="markdown level1 summary"><p>Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Input_Margins_Reset" data-uid="C1.Win.C1Input.Margins.Reset">
          <a class="xref" href="C1.Win.C1Input.Margins.Reset.html#C1_Win_C1Input_Margins_Reset">Reset()</a>
        </td>
        <td class="markdown level1 summary"><p>Sets all margins to zero.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Input_Margins_Set_System_Drawing_Printing_Margins_" data-uid="C1.Win.C1Input.Margins.Set(System.Drawing.Printing.Margins)">
          <a class="xref" href="C1.Win.C1Input.Margins.Set.html#C1_Win_C1Input_Margins_Set_System_Drawing_Printing_Margins_">Set(Margins)</a>
        </td>
        <td class="markdown level1 summary"><p>Overloaded. Sets the margin values.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Input_Margins_Set_System_Int32_System_Int32_System_Int32_System_Int32_" data-uid="C1.Win.C1Input.Margins.Set(System.Int32,System.Int32,System.Int32,System.Int32)">
          <a class="xref" href="C1.Win.C1Input.Margins.Set.html#C1_Win_C1Input_Margins_Set_System_Int32_System_Int32_System_Int32_System_Int32_">Set(int, int, int, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Overloaded. Sets the margin values.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Input_Margins_ShouldSerialize" data-uid="C1.Win.C1Input.Margins.ShouldSerialize">
          <a class="xref" href="C1.Win.C1Input.Margins.ShouldSerialize.html#C1_Win_C1Input_Margins_ShouldSerialize">ShouldSerialize()</a>
        </td>
        <td class="markdown level1 summary"><p>Returns true if at least one margin differs from the default zero value. Otherwise, returns false.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Input_Margins_ToString" data-uid="C1.Win.C1Input.Margins.ToString">
          <a class="xref" href="C1.Win.C1Input.Margins.ToString.html#C1_Win_C1Input_Margins_ToString">ToString()</a>
        </td>
        <td class="markdown level1 summary"><p>Converts this Margins to a human readable string.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
