# C1.Framework.Thickness

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Framework_Thickness" data-uid="C1.Framework.Thickness" class="text-break">Thickness Struct
</h1>
  <div class="markdown level0 summary"><p>Represents padding, border or margin information associated with a
user interface (UI) element.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Framework.html">C1.Framework</a></h6>
  <h6><strong>Assembly</strong>: C1.Win.10.dll</h6>
  <h5 id="C1_Framework_Thickness_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[TypeConverter(typeof(ThicknessConverter))]
public struct Thickness</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">&lt;TypeConverter(GetType(ThicknessConverter))&gt;
Public Structure Thickness</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_Framework_Thickness__ctor_System_Int32_" data-uid="C1.Framework.Thickness.#ctor(System.Int32)">
          <a class="xref" href="C1.Framework.Thickness.-ctor.html#C1_Framework_Thickness__ctor_System_Int32_">Thickness(int)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of a <a class="xref" href="C1.Framework.Thickness.html">Thickness</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Thickness__ctor_System_Int32_System_Int32_" data-uid="C1.Framework.Thickness.#ctor(System.Int32,System.Int32)">
          <a class="xref" href="C1.Framework.Thickness.-ctor.html#C1_Framework_Thickness__ctor_System_Int32_System_Int32_">Thickness(int, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of a <a class="xref" href="C1.Framework.Thickness.html">Thickness</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Thickness__ctor_System_Int32_System_Int32_System_Int32_System_Int32_" data-uid="C1.Framework.Thickness.#ctor(System.Int32,System.Int32,System.Int32,System.Int32)">
          <a class="xref" href="C1.Framework.Thickness.-ctor.html#C1_Framework_Thickness__ctor_System_Int32_System_Int32_System_Int32_System_Int32_">Thickness(int, int, int, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of a <a class="xref" href="C1.Framework.Thickness.html">Thickness</a>.</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_Framework_Thickness_Bottom" data-uid="C1.Framework.Thickness.Bottom">
          <a class="xref" href="C1.Framework.Thickness.Bottom.html#C1_Framework_Thickness_Bottom">Bottom</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the thickness value for the bottom edge.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Thickness_Empty" data-uid="C1.Framework.Thickness.Empty">
          <a class="xref" href="C1.Framework.Thickness.Empty.html#C1_Framework_Thickness_Empty">Empty</a>
        </td>
        <td class="markdown level1 summary"><p>Provides a <a class="xref" href="C1.Framework.Thickness.html">Thickness</a> object with no thickness.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Thickness_Height" data-uid="C1.Framework.Thickness.Height">
          <a class="xref" href="C1.Framework.Thickness.Height.html#C1_Framework_Thickness_Height">Height</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the combined thickness for the top and bottom edges.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Thickness_IsEmpty" data-uid="C1.Framework.Thickness.IsEmpty">
          <a class="xref" href="C1.Framework.Thickness.IsEmpty.html#C1_Framework_Thickness_IsEmpty">IsEmpty</a>
        </td>
        <td class="markdown level1 summary"><p>Returns true if the <a class="xref" href="C1.Framework.Thickness.html">Thickness</a> object is empty.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Thickness_Left" data-uid="C1.Framework.Thickness.Left">
          <a class="xref" href="C1.Framework.Thickness.Left.html#C1_Framework_Thickness_Left">Left</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the thickness value for the left edge.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Thickness_Right" data-uid="C1.Framework.Thickness.Right">
          <a class="xref" href="C1.Framework.Thickness.Right.html#C1_Framework_Thickness_Right">Right</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the thickness value for the right edge.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Thickness_Top" data-uid="C1.Framework.Thickness.Top">
          <a class="xref" href="C1.Framework.Thickness.Top.html#C1_Framework_Thickness_Top">Top</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the thickness value for the top edge.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Thickness_Width" data-uid="C1.Framework.Thickness.Width">
          <a class="xref" href="C1.Framework.Thickness.Width.html#C1_Framework_Thickness_Width">Width</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the combined thickness for the right and left edges.</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_Framework_Thickness_Deflate_System_Drawing_Rectangle_" data-uid="C1.Framework.Thickness.Deflate(System.Drawing.Rectangle)">
          <a class="xref" href="C1.Framework.Thickness.Deflate.html#C1_Framework_Thickness_Deflate_System_Drawing_Rectangle_">Deflate(Rectangle)</a>
        </td>
        <td class="markdown level1 summary"><p>Deflates the specified <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.rectangle">Rectangle</a> by the current <a class="xref" href="C1.Framework.Thickness.html">Thickness</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Thickness_DeflateRtl_System_Drawing_Rectangle_" data-uid="C1.Framework.Thickness.DeflateRtl(System.Drawing.Rectangle)">
          <a class="xref" href="C1.Framework.Thickness.DeflateRtl.html#C1_Framework_Thickness_DeflateRtl_System_Drawing_Rectangle_">DeflateRtl(Rectangle)</a>
        </td>
        <td class="markdown level1 summary"><p>Deflates the specified <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.rectangle">Rectangle</a> by the current <a class="xref" href="C1.Framework.Thickness.html">Thickness</a> with RightToLeft layout.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Thickness_Equals_System_Object_" data-uid="C1.Framework.Thickness.Equals(System.Object)">
          <a class="xref" href="C1.Framework.Thickness.Equals.html#C1_Framework_Thickness_Equals_System_Object_">Equals(object)</a>
        </td>
        <td class="markdown level1 summary"><p>Determines whether the value of the specified object is equivalent
to the current <a class="xref" href="C1.Framework.Thickness.html">Thickness</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Thickness_GetHashCode" data-uid="C1.Framework.Thickness.GetHashCode">
          <a class="xref" href="C1.Framework.Thickness.GetHashCode.html#C1_Framework_Thickness_GetHashCode">GetHashCode()</a>
        </td>
        <td class="markdown level1 summary"><p>Generates a hash code for the current <a class="xref" href="C1.Framework.Thickness.html">Thickness</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Thickness_Inflate_System_Drawing_Rectangle_" data-uid="C1.Framework.Thickness.Inflate(System.Drawing.Rectangle)">
          <a class="xref" href="C1.Framework.Thickness.Inflate.html#C1_Framework_Thickness_Inflate_System_Drawing_Rectangle_">Inflate(Rectangle)</a>
        </td>
        <td class="markdown level1 summary"><p>Inflates the specified <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.rectangle">Rectangle</a> by the current <a class="xref" href="C1.Framework.Thickness.html">Thickness</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Thickness_Inflate_System_Int32_" data-uid="C1.Framework.Thickness.Inflate(System.Int32)">
          <a class="xref" href="C1.Framework.Thickness.Inflate.html#C1_Framework_Thickness_Inflate_System_Int32_">Inflate(int)</a>
        </td>
        <td class="markdown level1 summary"><p>Inflates the current <a class="xref" href="C1.Framework.Thickness.html">Thickness</a> by the specified size.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Thickness_Inflate_System_Int32_System_Int32_" data-uid="C1.Framework.Thickness.Inflate(System.Int32,System.Int32)">
          <a class="xref" href="C1.Framework.Thickness.Inflate.html#C1_Framework_Thickness_Inflate_System_Int32_System_Int32_">Inflate(int, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Inflates the current <a class="xref" href="C1.Framework.Thickness.html">Thickness</a> by the specified values.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Thickness_InflateRtl_System_Drawing_Rectangle_" data-uid="C1.Framework.Thickness.InflateRtl(System.Drawing.Rectangle)">
          <a class="xref" href="C1.Framework.Thickness.InflateRtl.html#C1_Framework_Thickness_InflateRtl_System_Drawing_Rectangle_">InflateRtl(Rectangle)</a>
        </td>
        <td class="markdown level1 summary"><p>Inflates the specified <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.rectangle">Rectangle</a> by the current <a class="xref" href="C1.Framework.Thickness.html">Thickness</a> with RightToLeft layout.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Thickness_SwapLeftRight" data-uid="C1.Framework.Thickness.SwapLeftRight">
          <a class="xref" href="C1.Framework.Thickness.SwapLeftRight.html#C1_Framework_Thickness_SwapLeftRight">SwapLeftRight()</a>
        </td>
        <td class="markdown level1 summary"><p>Swaps the values of the Left and Right properties.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Thickness_ToString" data-uid="C1.Framework.Thickness.ToString">
          <a class="xref" href="C1.Framework.Thickness.ToString.html#C1_Framework_Thickness_ToString">ToString()</a>
        </td>
        <td class="markdown level1 summary"><p>Returns a string that represents the current <a class="xref" href="C1.Framework.Thickness.html">Thickness</a>.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="operators">Operators
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Framework_Thickness_op_Equality_C1_Framework_Thickness_C1_Framework_Thickness_" data-uid="C1.Framework.Thickness.op_Equality(C1.Framework.Thickness,C1.Framework.Thickness)">
          <a class="xref" href="C1.Framework.Thickness.op_Equality.html#C1_Framework_Thickness_op_Equality_C1_Framework_Thickness_C1_Framework_Thickness_">operator ==(Thickness, Thickness)</a>
        </td>
        <td class="markdown level1 summary"><p>Tests whether two specified <a class="xref" href="C1.Framework.Thickness.html">Thickness</a> objects are equivalent.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Thickness_op_Implicit_C1_Framework_Thickness__System_Windows_Forms_Padding" data-uid="C1.Framework.Thickness.op_Implicit(C1.Framework.Thickness)~System.Windows.Forms.Padding">
          <a class="xref" href="C1.Framework.Thickness.op_Implicit.html#C1_Framework_Thickness_op_Implicit_C1_Framework_Thickness__System_Windows_Forms_Padding">implicit operator Padding(Thickness)</a>
        </td>
        <td class="markdown level1 summary"><p>Converts an <a class="xref" href="C1.Framework.Thickness.html">Thickness</a> into a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.padding">Padding</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Thickness_op_Implicit_System_Int32__C1_Framework_Thickness" data-uid="C1.Framework.Thickness.op_Implicit(System.Int32)~C1.Framework.Thickness">
          <a class="xref" href="C1.Framework.Thickness.op_Implicit.html#C1_Framework_Thickness_op_Implicit_System_Int32__C1_Framework_Thickness">implicit operator Thickness(int)</a>
        </td>
        <td class="markdown level1 summary"><p>Converts an <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a> into a <a class="xref" href="C1.Framework.Thickness.html">Thickness</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Thickness_op_Implicit_System_Windows_Forms_Padding__C1_Framework_Thickness" data-uid="C1.Framework.Thickness.op_Implicit(System.Windows.Forms.Padding)~C1.Framework.Thickness">
          <a class="xref" href="C1.Framework.Thickness.op_Implicit.html#C1_Framework_Thickness_op_Implicit_System_Windows_Forms_Padding__C1_Framework_Thickness">implicit operator Thickness(Padding)</a>
        </td>
        <td class="markdown level1 summary"><p>Converts an <a class="xref" href="C1.Framework.Thickness.html">Thickness</a> into a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.padding">Padding</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Thickness_op_Inequality_C1_Framework_Thickness_C1_Framework_Thickness_" data-uid="C1.Framework.Thickness.op_Inequality(C1.Framework.Thickness,C1.Framework.Thickness)">
          <a class="xref" href="C1.Framework.Thickness.op_Inequality.html#C1_Framework_Thickness_op_Inequality_C1_Framework_Thickness_C1_Framework_Thickness_">operator !=(Thickness, Thickness)</a>
        </td>
        <td class="markdown level1 summary"><p>Tests whether two specified <a class="xref" href="C1.Framework.Thickness.html">Thickness</a> objects are not equivalent.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
