# C1.Win.Interop.Size

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Win_Interop_Size" data-uid="C1.Win.Interop.Size" class="text-break">Size Struct
</h1>
  <div class="markdown level0 summary"><p>Stores an ordered pair of <b>double</b> values, typically the width and height of a rectangle.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Win.Interop.html">C1.Win.Interop</a></h6>
  <h6><strong>Assembly</strong>: C1.Win.10.dll</h6>
  <h5 id="C1_Win_Interop_Size_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public struct Size</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Structure Size</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_Interop_Size__ctor_System_Double_System_Double_" data-uid="C1.Win.Interop.Size.#ctor(System.Double,System.Double)">
          <a class="xref" href="C1.Win.Interop.Size.-ctor.html#C1_Win_Interop_Size__ctor_System_Double_System_Double_">Size(double, double)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Win.Interop.Size.html">Size</a> structure.</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_Interop_Size_Empty" data-uid="C1.Win.Interop.Size.Empty">
          <a class="xref" href="C1.Win.Interop.Size.Empty.html#C1_Win_Interop_Size_Empty">Empty</a>
        </td>
        <td class="markdown level1 summary"><p>Represents an empty instance of the <a class="xref" href="C1.Win.Interop.Size.html">Size</a> structure.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Interop_Size_Height" data-uid="C1.Win.Interop.Size.Height">
          <a class="xref" href="C1.Win.Interop.Size.Height.html#C1_Win_Interop_Size_Height">Height</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the vertical component of the current <a class="xref" href="C1.Win.Interop.Size.html">Size</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Interop_Size_IsEmpty" data-uid="C1.Win.Interop.Size.IsEmpty">
          <a class="xref" href="C1.Win.Interop.Size.IsEmpty.html#C1_Win_Interop_Size_IsEmpty">IsEmpty</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a value indicating whether of the current <a class="xref" href="C1.Win.Interop.Size.html">Size</a> has zero <a class="xref" href="C1.Win.Interop.Size.Width.html#C1_Win_Interop_Size_Width">Width</a> and <a class="xref" href="C1.Win.Interop.Size.Height.html#C1_Win_Interop_Size_Height">Height</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Interop_Size_Width" data-uid="C1.Win.Interop.Size.Width">
          <a class="xref" href="C1.Win.Interop.Size.Width.html#C1_Win_Interop_Size_Width">Width</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the horizontal component of the current <a class="xref" href="C1.Win.Interop.Size.html">Size</a>.</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_Interop_Size_Add_C1_Win_Interop_Size_C1_Win_Interop_Size_" data-uid="C1.Win.Interop.Size.Add(C1.Win.Interop.Size,C1.Win.Interop.Size)">
          <a class="xref" href="C1.Win.Interop.Size.Add.html#C1_Win_Interop_Size_Add_C1_Win_Interop_Size_C1_Win_Interop_Size_">Add(Size, Size)</a>
        </td>
        <td class="markdown level1 summary"><p>Adds two <a class="xref" href="C1.Win.Interop.Size.html">Size</a> structures.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Interop_Size_Ceiling" data-uid="C1.Win.Interop.Size.Ceiling">
          <a class="xref" href="C1.Win.Interop.Size.Ceiling.html#C1_Win_Interop_Size_Ceiling">Ceiling()</a>
        </td>
        <td class="markdown level1 summary"><p>Converts the current <a class="xref" href="C1.Win.Interop.Size.html">Size</a> structure to a <a class="xref" href="C1.Win.Interop.Point.html">Point</a> by rounding the
width and height to the next higher integer values.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Interop_Size_Equals_System_Object_" data-uid="C1.Win.Interop.Size.Equals(System.Object)">
          <a class="xref" href="C1.Win.Interop.Size.Equals.html#C1_Win_Interop_Size_Equals_System_Object_">Equals(object)</a>
        </td>
        <td class="markdown level1 summary"><p>Indicates whether this instance and a specified object are equal.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Interop_Size_GetHashCode" data-uid="C1.Win.Interop.Size.GetHashCode">
          <a class="xref" href="C1.Win.Interop.Size.GetHashCode.html#C1_Win_Interop_Size_GetHashCode">GetHashCode()</a>
        </td>
        <td class="markdown level1 summary"><p>Returns the hash code for this instance.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Interop_Size_Parse_System_String_C1_Win_Interop_Size__System_Boolean_" data-uid="C1.Win.Interop.Size.Parse(System.String,C1.Win.Interop.Size@,System.Boolean)">
          <a class="xref" href="C1.Win.Interop.Size.Parse.html#C1_Win_Interop_Size_Parse_System_String_C1_Win_Interop_Size__System_Boolean_">Parse(string, out Size, bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Converts a string to a <a class="xref" href="C1.Win.Interop.Size.html">Size</a> structure.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Interop_Size_Substract_C1_Win_Interop_Size_C1_Win_Interop_Size_" data-uid="C1.Win.Interop.Size.Substract(C1.Win.Interop.Size,C1.Win.Interop.Size)">
          <a class="xref" href="C1.Win.Interop.Size.Substract.html#C1_Win_Interop_Size_Substract_C1_Win_Interop_Size_C1_Win_Interop_Size_">Substract(Size, Size)</a>
        </td>
        <td class="markdown level1 summary"><p>Subtracts one <a class="xref" href="C1.Win.Interop.Size.html">Size</a> structure from another.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Interop_Size_ToString" data-uid="C1.Win.Interop.Size.ToString">
          <a class="xref" href="C1.Win.Interop.Size.ToString.html#C1_Win_Interop_Size_ToString">ToString()</a>
        </td>
        <td class="markdown level1 summary"><p>Converts the current <a class="xref" href="C1.Win.Interop.Size.html">Size</a> structure to a human-readable string representing it.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Interop_Size_Truncate" data-uid="C1.Win.Interop.Size.Truncate">
          <a class="xref" href="C1.Win.Interop.Size.Truncate.html#C1_Win_Interop_Size_Truncate">Truncate()</a>
        </td>
        <td class="markdown level1 summary"><p>Converts the current <a class="xref" href="C1.Win.Interop.Size.html">Size</a> structure to a <a class="xref" href="C1.Win.Interop.Point.html">Point</a> by truncating the
width and height to integer values.</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_Win_Interop_Size_op_Addition_C1_Win_Interop_Size_C1_Win_Interop_Size_" data-uid="C1.Win.Interop.Size.op_Addition(C1.Win.Interop.Size,C1.Win.Interop.Size)">
          <a class="xref" href="C1.Win.Interop.Size.op_Addition.html#C1_Win_Interop_Size_op_Addition_C1_Win_Interop_Size_C1_Win_Interop_Size_">operator +(Size, Size)</a>
        </td>
        <td class="markdown level1 summary"><p>Adds two <a class="xref" href="C1.Win.Interop.Size.html">Size</a> structures.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Interop_Size_op_Equality_C1_Win_Interop_Size_C1_Win_Interop_Size_" data-uid="C1.Win.Interop.Size.op_Equality(C1.Win.Interop.Size,C1.Win.Interop.Size)">
          <a class="xref" href="C1.Win.Interop.Size.op_Equality.html#C1_Win_Interop_Size_op_Equality_C1_Win_Interop_Size_C1_Win_Interop_Size_">operator ==(Size, Size)</a>
        </td>
        <td class="markdown level1 summary"><p>Indicates whether two <a class="xref" href="C1.Win.Interop.Size.html">Size</a> structures are equal.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Interop_Size_op_Explicit_C1_Win_Interop_Size__C1_Win_Interop_Point" data-uid="C1.Win.Interop.Size.op_Explicit(C1.Win.Interop.Size)~C1.Win.Interop.Point">
          <a class="xref" href="C1.Win.Interop.Size.op_Explicit.html#C1_Win_Interop_Size_op_Explicit_C1_Win_Interop_Size__C1_Win_Interop_Point">explicit operator Point(Size)</a>
        </td>
        <td class="markdown level1 summary"><p>Converts a <a class="xref" href="C1.Win.Interop.Size.html">Size</a> to a <a class="xref" href="C1.Win.Interop.Point.html">Point</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Interop_Size_op_Implicit_System_Drawing_Size__C1_Win_Interop_Size" data-uid="C1.Win.Interop.Size.op_Implicit(System.Drawing.Size)~C1.Win.Interop.Size">
          <a class="xref" href="C1.Win.Interop.Size.op_Implicit.html#C1_Win_Interop_Size_op_Implicit_System_Drawing_Size__C1_Win_Interop_Size">implicit operator Size(Size)</a>
        </td>
        <td class="markdown level1 summary"><p>Converts a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.size">Size</a> to a <a class="xref" href="C1.Win.Interop.Size.html">Size</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Interop_Size_op_Implicit_System_Drawing_SizeF__C1_Win_Interop_Size" data-uid="C1.Win.Interop.Size.op_Implicit(System.Drawing.SizeF)~C1.Win.Interop.Size">
          <a class="xref" href="C1.Win.Interop.Size.op_Implicit.html#C1_Win_Interop_Size_op_Implicit_System_Drawing_SizeF__C1_Win_Interop_Size">implicit operator Size(SizeF)</a>
        </td>
        <td class="markdown level1 summary"><p>Converts a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.sizef">SizeF</a> to a <a class="xref" href="C1.Win.Interop.Size.html">Size</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Interop_Size_op_Inequality_C1_Win_Interop_Size_C1_Win_Interop_Size_" data-uid="C1.Win.Interop.Size.op_Inequality(C1.Win.Interop.Size,C1.Win.Interop.Size)">
          <a class="xref" href="C1.Win.Interop.Size.op_Inequality.html#C1_Win_Interop_Size_op_Inequality_C1_Win_Interop_Size_C1_Win_Interop_Size_">operator !=(Size, Size)</a>
        </td>
        <td class="markdown level1 summary"><p>Indicates whether two <a class="xref" href="C1.Win.Interop.Size.html">Size</a> structures are not equal.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Interop_Size_op_Subtraction_C1_Win_Interop_Size_C1_Win_Interop_Size_" data-uid="C1.Win.Interop.Size.op_Subtraction(C1.Win.Interop.Size,C1.Win.Interop.Size)">
          <a class="xref" href="C1.Win.Interop.Size.op_Subtraction.html#C1_Win_Interop_Size_op_Subtraction_C1_Win_Interop_Size_C1_Win_Interop_Size_">operator -(Size, Size)</a>
        </td>
        <td class="markdown level1 summary"><p>Subtracts one <a class="xref" href="C1.Win.Interop.Size.html">Size</a> structure from another.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
