# C1.Util.DX.Size2F

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Util_DX_Size2F" data-uid="C1.Util.DX.Size2F" class="text-break">Size2F Struct
</h1>
  <div class="markdown level0 summary"><p>Structure specifing a size with float Width and Height.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.iequatable-1">IEquatable</a>&lt;<a class="xref" href="C1.Util.DX.Size2F.html">Size2F</a>&gt;</div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Util.DX.html">C1.Util.DX</a></h6>
  <h6><strong>Assembly</strong>: C1.Win.DX.4.8.dll</h6>
  <h5 id="C1_Util_DX_Size2F_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public struct Size2F : IEquatable&lt;Size2F&gt;</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Structure Size2F
    Implements IEquatable(Of Size2F)</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_Util_DX_Size2F__ctor_C1_Util_DX_Size2D_" data-uid="C1.Util.DX.Size2F.#ctor(C1.Util.DX.Size2D)">
          <a class="xref" href="C1.Util.DX.Size2F.-ctor.html#C1_Util_DX_Size2F__ctor_C1_Util_DX_Size2D_">Size2F(Size2D)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Util.DX.Size2F.html">Size2F</a> struct.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Size2F__ctor_C1_Win_Interop_Size_" data-uid="C1.Util.DX.Size2F.#ctor(C1.Win.Interop.Size)">
          <a class="xref" href="C1.Util.DX.Size2F.-ctor.html#C1_Util_DX_Size2F__ctor_C1_Win_Interop_Size_">Size2F(Size)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Util.DX.Size2F.html">Size2F</a> struct.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Size2F__ctor_System_Drawing_SizeF_" data-uid="C1.Util.DX.Size2F.#ctor(System.Drawing.SizeF)">
          <a class="xref" href="C1.Util.DX.Size2F.-ctor.html#C1_Util_DX_Size2F__ctor_System_Drawing_SizeF_">Size2F(SizeF)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Util.DX.Size2F.html">Size2F</a> struct.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Size2F__ctor_System_Single_System_Single_" data-uid="C1.Util.DX.Size2F.#ctor(System.Single,System.Single)">
          <a class="xref" href="C1.Util.DX.Size2F.-ctor.html#C1_Util_DX_Size2F__ctor_System_Single_System_Single_">Size2F(float, float)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Util.DX.Size2F.html">Size2F</a> struct.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="fields">Fields
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Util_DX_Size2F_Empty" data-uid="C1.Util.DX.Size2F.Empty">
          <a class="xref" href="C1.Util.DX.Size2F.Empty.html">Empty</a>
        </td>
        <td class="markdown level1 summary"><p>An empty size.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Size2F_Height" data-uid="C1.Util.DX.Size2F.Height">
          <a class="xref" href="C1.Util.DX.Size2F.Height.html">Height</a>
        </td>
        <td class="markdown level1 summary"><p>The vertical component of this <a class="xref" href="C1.Util.DX.Size2F.html">Size2F</a> structure.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Size2F_Infinite" data-uid="C1.Util.DX.Size2F.Infinite">
          <a class="xref" href="C1.Util.DX.Size2F.Infinite.html">Infinite</a>
        </td>
        <td class="markdown level1 summary"><p>A size with infinite Width and Height.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Size2F_SizeInBytes" data-uid="C1.Util.DX.Size2F.SizeInBytes">
          <a class="xref" href="C1.Util.DX.Size2F.SizeInBytes.html">SizeInBytes</a>
        </td>
        <td class="markdown level1 summary"><p>The size of the <a class="xref" href="C1.Util.DX.Size2F.html">Size2F</a> type, in bytes.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Size2F_Width" data-uid="C1.Util.DX.Size2F.Width">
          <a class="xref" href="C1.Util.DX.Size2F.Width.html">Width</a>
        </td>
        <td class="markdown level1 summary"><p>The horizontal component of this <a class="xref" href="C1.Util.DX.Size2F.html">Size2F</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_Util_DX_Size2F_IsEmpty" data-uid="C1.Util.DX.Size2F.IsEmpty">
          <a class="xref" href="C1.Util.DX.Size2F.IsEmpty.html#C1_Util_DX_Size2F_IsEmpty">IsEmpty</a>
        </td>
        <td class="markdown level1 summary"><p>Determines if all components of <a class="xref" href="C1.Util.DX.Size2F.html">Size2F</a> are equal to zero.</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_Util_DX_Size2F_Add_C1_Util_DX_Size2F_C1_Util_DX_Size2F_" data-uid="C1.Util.DX.Size2F.Add(C1.Util.DX.Size2F,C1.Util.DX.Size2F)">
          <a class="xref" href="C1.Util.DX.Size2F.Add.html#C1_Util_DX_Size2F_Add_C1_Util_DX_Size2F_C1_Util_DX_Size2F_">Add(Size2F, Size2F)</a>
        </td>
        <td class="markdown level1 summary"><p>Adds the width and height of one Size2F structure to the width and height of another Size2F structure.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Size2F_Equals_C1_Util_DX_Size2F_" data-uid="C1.Util.DX.Size2F.Equals(C1.Util.DX.Size2F)">
          <a class="xref" href="C1.Util.DX.Size2F.Equals.html#C1_Util_DX_Size2F_Equals_C1_Util_DX_Size2F_">Equals(Size2F)</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_Util_DX_Size2F_Equals_System_Object_" data-uid="C1.Util.DX.Size2F.Equals(System.Object)">
          <a class="xref" href="C1.Util.DX.Size2F.Equals.html#C1_Util_DX_Size2F_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_Util_DX_Size2F_GetHashCode" data-uid="C1.Util.DX.Size2F.GetHashCode">
          <a class="xref" href="C1.Util.DX.Size2F.GetHashCode.html#C1_Util_DX_Size2F_GetHashCode">GetHashCode()</a>
        </td>
        <td class="markdown level1 summary"><p>Returns a hash code for this instance.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Size2F_Round" data-uid="C1.Util.DX.Size2F.Round">
          <a class="xref" href="C1.Util.DX.Size2F.Round.html#C1_Util_DX_Size2F_Round">Round()</a>
        </td>
        <td class="markdown level1 summary"><p>Returns a <a class="xref" href="C1.Util.DX.Size2L.html">Size2L</a> with rounded width and height.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Size2F_Scale_C1_Util_DX_Size2F_System_Single_" data-uid="C1.Util.DX.Size2F.Scale(C1.Util.DX.Size2F,System.Single)">
          <a class="xref" href="C1.Util.DX.Size2F.Scale.html#C1_Util_DX_Size2F_Scale_C1_Util_DX_Size2F_System_Single_">Scale(Size2F, float)</a>
        </td>
        <td class="markdown level1 summary"><p>Scales the width and height by the specified scaleFactor.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Size2F_Scale_C1_Util_DX_Size2F_System_Single_System_Single_" data-uid="C1.Util.DX.Size2F.Scale(C1.Util.DX.Size2F,System.Single,System.Single)">
          <a class="xref" href="C1.Util.DX.Size2F.Scale.html#C1_Util_DX_Size2F_Scale_C1_Util_DX_Size2F_System_Single_System_Single_">Scale(Size2F, float, float)</a>
        </td>
        <td class="markdown level1 summary"><p>Scales the width and height by the specified scaleX and scaleY.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Size2F_Scale_System_Single_" data-uid="C1.Util.DX.Size2F.Scale(System.Single)">
          <a class="xref" href="C1.Util.DX.Size2F.Scale.html#C1_Util_DX_Size2F_Scale_System_Single_">Scale(float)</a>
        </td>
        <td class="markdown level1 summary"><p>Scales the width and height by the specified scaleFactor.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Size2F_Scale_System_Single_System_Single_" data-uid="C1.Util.DX.Size2F.Scale(System.Single,System.Single)">
          <a class="xref" href="C1.Util.DX.Size2F.Scale.html#C1_Util_DX_Size2F_Scale_System_Single_System_Single_">Scale(float, float)</a>
        </td>
        <td class="markdown level1 summary"><p>Scales the width and height by the specified scaleX and scaleY.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Size2F_Subtract_C1_Util_DX_Size2F_C1_Util_DX_Size2F_" data-uid="C1.Util.DX.Size2F.Subtract(C1.Util.DX.Size2F,C1.Util.DX.Size2F)">
          <a class="xref" href="C1.Util.DX.Size2F.Subtract.html#C1_Util_DX_Size2F_Subtract_C1_Util_DX_Size2F_C1_Util_DX_Size2F_">Subtract(Size2F, Size2F)</a>
        </td>
        <td class="markdown level1 summary"><p>Subtracts the width and height of one Size2F structure from the width and height of another Size2F structure.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Size2F_ToSize" data-uid="C1.Util.DX.Size2F.ToSize">
          <a class="xref" href="C1.Util.DX.Size2F.ToSize.html#C1_Util_DX_Size2F_ToSize">ToSize()</a>
        </td>
        <td class="markdown level1 summary"><p>Converts <a class="xref" href="C1.Util.DX.Size2F.html">Size2F</a> to <span class="xref">C1.Win.Interop.Size</span>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Size2F_ToSize2D" data-uid="C1.Util.DX.Size2F.ToSize2D">
          <a class="xref" href="C1.Util.DX.Size2F.ToSize2D.html#C1_Util_DX_Size2F_ToSize2D">ToSize2D()</a>
        </td>
        <td class="markdown level1 summary"><p>Converts <a class="xref" href="C1.Util.DX.Size2F.html">Size2F</a> to <a class="xref" href="C1.Util.DX.Size2D.html">Size2D</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Size2F_ToSizeF" data-uid="C1.Util.DX.Size2F.ToSizeF">
          <a class="xref" href="C1.Util.DX.Size2F.ToSizeF.html#C1_Util_DX_Size2F_ToSizeF">ToSizeF()</a>
        </td>
        <td class="markdown level1 summary"><p>Converts <a class="xref" href="C1.Util.DX.Size2F.html">Size2F</a> to <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.sizef">SizeF</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Size2F_ToString" data-uid="C1.Util.DX.Size2F.ToString">
          <a class="xref" href="C1.Util.DX.Size2F.ToString.html#C1_Util_DX_Size2F_ToString">ToString()</a>
        </td>
        <td class="markdown level1 summary"><p>Returns a string that represents the current object.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Size2F_Truncate" data-uid="C1.Util.DX.Size2F.Truncate">
          <a class="xref" href="C1.Util.DX.Size2F.Truncate.html#C1_Util_DX_Size2F_Truncate">Truncate()</a>
        </td>
        <td class="markdown level1 summary"><p>Returns a <a class="xref" href="C1.Util.DX.Size2L.html">Size2L</a> with truncated width and height.</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_Util_DX_Size2F_op_Equality_C1_Util_DX_Size2F_C1_Util_DX_Size2F_" data-uid="C1.Util.DX.Size2F.op_Equality(C1.Util.DX.Size2F,C1.Util.DX.Size2F)">
          <a class="xref" href="C1.Util.DX.Size2F.op_Equality.html#C1_Util_DX_Size2F_op_Equality_C1_Util_DX_Size2F_C1_Util_DX_Size2F_">operator ==(Size2F, Size2F)</a>
        </td>
        <td class="markdown level1 summary"><p>Determines if the specified values are equal.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Size2F_op_Explicit_C1_Util_DX_Size2F__C1_Util_DX_Vector2" data-uid="C1.Util.DX.Size2F.op_Explicit(C1.Util.DX.Size2F)~C1.Util.DX.Vector2">
          <a class="xref" href="C1.Util.DX.Size2F.op_Explicit.html#C1_Util_DX_Size2F_op_Explicit_C1_Util_DX_Size2F__C1_Util_DX_Vector2">explicit operator Vector2(Size2F)</a>
        </td>
        <td class="markdown level1 summary"><p>Performs an explicit conversion from <a class="xref" href="C1.Util.DX.Size2F.html">Size2F</a> to <a class="xref" href="C1.Util.DX.Vector2.html">Vector2</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Size2F_op_Explicit_C1_Util_DX_Size2F__C1_Win_Interop_Size" data-uid="C1.Util.DX.Size2F.op_Explicit(C1.Util.DX.Size2F)~C1.Win.Interop.Size">
          <a class="xref" href="C1.Util.DX.Size2F.op_Explicit.html#C1_Util_DX_Size2F_op_Explicit_C1_Util_DX_Size2F__C1_Win_Interop_Size">explicit operator Size(Size2F)</a>
        </td>
        <td class="markdown level1 summary"><p>Performs an explicit conversion from <a class="xref" href="C1.Util.DX.Size2F.html">Size2F</a> to <span class="xref">C1.Win.Interop.Size</span>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Size2F_op_Explicit_C1_Util_DX_Size2F__System_Drawing_SizeF" data-uid="C1.Util.DX.Size2F.op_Explicit(C1.Util.DX.Size2F)~System.Drawing.SizeF">
          <a class="xref" href="C1.Util.DX.Size2F.op_Explicit.html#C1_Util_DX_Size2F_op_Explicit_C1_Util_DX_Size2F__System_Drawing_SizeF">explicit operator SizeF(Size2F)</a>
        </td>
        <td class="markdown level1 summary"><p>Performs an explicit conversion from <a class="xref" href="C1.Util.DX.Size2F.html">Size2F</a> to <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.sizef">SizeF</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Size2F_op_Explicit_C1_Util_DX_Vector2__C1_Util_DX_Size2F" data-uid="C1.Util.DX.Size2F.op_Explicit(C1.Util.DX.Vector2)~C1.Util.DX.Size2F">
          <a class="xref" href="C1.Util.DX.Size2F.op_Explicit.html#C1_Util_DX_Size2F_op_Explicit_C1_Util_DX_Vector2__C1_Util_DX_Size2F">explicit operator Size2F(Vector2)</a>
        </td>
        <td class="markdown level1 summary"><p>Performs an explicit conversion from <a class="xref" href="C1.Util.DX.Vector2.html">Vector2</a> to <a class="xref" href="C1.Util.DX.Size2F.html">Size2F</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Size2F_op_Explicit_C1_Win_Interop_Size__C1_Util_DX_Size2F" data-uid="C1.Util.DX.Size2F.op_Explicit(C1.Win.Interop.Size)~C1.Util.DX.Size2F">
          <a class="xref" href="C1.Util.DX.Size2F.op_Explicit.html#C1_Util_DX_Size2F_op_Explicit_C1_Win_Interop_Size__C1_Util_DX_Size2F">explicit operator Size2F(Size)</a>
        </td>
        <td class="markdown level1 summary"><p>Performs an explicit conversion from <span class="xref">C1.Win.Interop.Size</span> to <a class="xref" href="C1.Util.DX.Size2F.html">Size2F</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Size2F_op_Explicit_System_Drawing_SizeF__C1_Util_DX_Size2F" data-uid="C1.Util.DX.Size2F.op_Explicit(System.Drawing.SizeF)~C1.Util.DX.Size2F">
          <a class="xref" href="C1.Util.DX.Size2F.op_Explicit.html#C1_Util_DX_Size2F_op_Explicit_System_Drawing_SizeF__C1_Util_DX_Size2F">explicit operator Size2F(SizeF)</a>
        </td>
        <td class="markdown level1 summary"><p>Performs an explicit conversion from <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.sizef">SizeF</a> to <a class="xref" href="C1.Util.DX.Size2F.html">Size2F</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Size2F_op_Inequality_C1_Util_DX_Size2F_C1_Util_DX_Size2F_" data-uid="C1.Util.DX.Size2F.op_Inequality(C1.Util.DX.Size2F,C1.Util.DX.Size2F)">
          <a class="xref" href="C1.Util.DX.Size2F.op_Inequality.html#C1_Util_DX_Size2F_op_Inequality_C1_Util_DX_Size2F_C1_Util_DX_Size2F_">operator !=(Size2F, Size2F)</a>
        </td>
        <td class="markdown level1 summary"><p>Determines if the specified values are not equal.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
