# C1.Util.DX.ViewportF

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Util_DX_ViewportF" data-uid="C1.Util.DX.ViewportF" class="text-break">ViewportF Struct
</h1>
  <div class="markdown level0 summary"><p>Defines the viewport dimensions using float coordinates for (X, Y, Width, Height, MinDepth, MaxDepth).</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.ViewportF.html">ViewportF</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_ViewportF_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public struct ViewportF : IEquatable&lt;ViewportF&gt;</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Structure ViewportF
    Implements IEquatable(Of ViewportF)</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_ViewportF__ctor_C1_Util_DX_RectF_" data-uid="C1.Util.DX.ViewportF.#ctor(C1.Util.DX.RectF)">
          <a class="xref" href="C1.Util.DX.ViewportF.-ctor.html#C1_Util_DX_ViewportF__ctor_C1_Util_DX_RectF_">ViewportF(RectF)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Util.DX.ViewportF.html">ViewportF</a> struct.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_ViewportF__ctor_System_Single_System_Single_System_Single_System_Single_" data-uid="C1.Util.DX.ViewportF.#ctor(System.Single,System.Single,System.Single,System.Single)">
          <a class="xref" href="C1.Util.DX.ViewportF.-ctor.html#C1_Util_DX_ViewportF__ctor_System_Single_System_Single_System_Single_System_Single_">ViewportF(float, float, float, float)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Util.DX.ViewportF.html">ViewportF</a> struct.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_ViewportF__ctor_System_Single_System_Single_System_Single_System_Single_System_Single_System_Single_" data-uid="C1.Util.DX.ViewportF.#ctor(System.Single,System.Single,System.Single,System.Single,System.Single,System.Single)">
          <a class="xref" href="C1.Util.DX.ViewportF.-ctor.html#C1_Util_DX_ViewportF__ctor_System_Single_System_Single_System_Single_System_Single_System_Single_System_Single_">ViewportF(float, float, float, float, float, float)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Util.DX.ViewportF.html">ViewportF</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_ViewportF_Height" data-uid="C1.Util.DX.ViewportF.Height">
          <a class="xref" href="C1.Util.DX.ViewportF.Height.html">Height</a>
        </td>
        <td class="markdown level1 summary"><p>Height dimension of the viewport.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_ViewportF_MaxDepth" data-uid="C1.Util.DX.ViewportF.MaxDepth">
          <a class="xref" href="C1.Util.DX.ViewportF.MaxDepth.html">MaxDepth</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the maximum depth of the clip volume.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_ViewportF_MinDepth" data-uid="C1.Util.DX.ViewportF.MinDepth">
          <a class="xref" href="C1.Util.DX.ViewportF.MinDepth.html">MinDepth</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the minimum depth of the clip volume.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_ViewportF_SizeInBytes" data-uid="C1.Util.DX.ViewportF.SizeInBytes">
          <a class="xref" href="C1.Util.DX.ViewportF.SizeInBytes.html">SizeInBytes</a>
        </td>
        <td class="markdown level1 summary"><p>The size of the <a class="xref" href="C1.Util.DX.ViewportF.html">ViewportF</a> type, in bytes.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_ViewportF_Width" data-uid="C1.Util.DX.ViewportF.Width">
          <a class="xref" href="C1.Util.DX.ViewportF.Width.html">Width</a>
        </td>
        <td class="markdown level1 summary"><p>Width dimension of the viewport.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_ViewportF_X" data-uid="C1.Util.DX.ViewportF.X">
          <a class="xref" href="C1.Util.DX.ViewportF.X.html">X</a>
        </td>
        <td class="markdown level1 summary"><p>Position of the pixel coordinate of the upper-left corner of the viewport.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_ViewportF_Y" data-uid="C1.Util.DX.ViewportF.Y">
          <a class="xref" href="C1.Util.DX.ViewportF.Y.html">Y</a>
        </td>
        <td class="markdown level1 summary"><p>Position of the pixel coordinate of the upper-left corner of the viewport.</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_ViewportF_Bounds" data-uid="C1.Util.DX.ViewportF.Bounds">
          <a class="xref" href="C1.Util.DX.ViewportF.Bounds.html#C1_Util_DX_ViewportF_Bounds">Bounds</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the size of this resource.</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_ViewportF_Equals_C1_Util_DX_ViewportF_" data-uid="C1.Util.DX.ViewportF.Equals(C1.Util.DX.ViewportF)">
          <a class="xref" href="C1.Util.DX.ViewportF.Equals.html#C1_Util_DX_ViewportF_Equals_C1_Util_DX_ViewportF_">Equals(ViewportF)</a>
        </td>
        <td class="markdown level1 summary"><p>Determines whether the specified <a class="xref" href="C1.Util.DX.ViewportF.html">ViewportF</a> is equal to this instance.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_ViewportF_Equals_System_Object_" data-uid="C1.Util.DX.ViewportF.Equals(System.Object)">
          <a class="xref" href="C1.Util.DX.ViewportF.Equals.html#C1_Util_DX_ViewportF_Equals_System_Object_">Equals(object)</a>
        </td>
        <td class="markdown level1 summary"><p>Determines whether the specified object is equal to this instance.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_ViewportF_EqualsRef_C1_Util_DX_ViewportF__" data-uid="C1.Util.DX.ViewportF.EqualsRef(C1.Util.DX.ViewportF@)">
          <a class="xref" href="C1.Util.DX.ViewportF.EqualsRef.html#C1_Util_DX_ViewportF_EqualsRef_C1_Util_DX_ViewportF__">EqualsRef(ref ViewportF)</a>
        </td>
        <td class="markdown level1 summary"><p>Determines whether the specified <a class="xref" href="C1.Util.DX.ViewportF.html">ViewportF</a> is equal to this instance.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_ViewportF_GetHashCode" data-uid="C1.Util.DX.ViewportF.GetHashCode">
          <a class="xref" href="C1.Util.DX.ViewportF.GetHashCode.html#C1_Util_DX_ViewportF_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_ViewportF_ToString" data-uid="C1.Util.DX.ViewportF.ToString">
          <a class="xref" href="C1.Util.DX.ViewportF.ToString.html#C1_Util_DX_ViewportF_ToString">ToString()</a>
        </td>
        <td class="markdown level1 summary"><p>Retrieves a string representation of this object.</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_ViewportF_op_Equality_C1_Util_DX_ViewportF_C1_Util_DX_ViewportF_" data-uid="C1.Util.DX.ViewportF.op_Equality(C1.Util.DX.ViewportF,C1.Util.DX.ViewportF)">
          <a class="xref" href="C1.Util.DX.ViewportF.op_Equality.html#C1_Util_DX_ViewportF_op_Equality_C1_Util_DX_ViewportF_C1_Util_DX_ViewportF_">operator ==(ViewportF, ViewportF)</a>
        </td>
        <td class="markdown level1 summary"><p>Determines if the specified values are equal.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_ViewportF_op_Inequality_C1_Util_DX_ViewportF_C1_Util_DX_ViewportF_" data-uid="C1.Util.DX.ViewportF.op_Inequality(C1.Util.DX.ViewportF,C1.Util.DX.ViewportF)">
          <a class="xref" href="C1.Util.DX.ViewportF.op_Inequality.html#C1_Util_DX_ViewportF_op_Inequality_C1_Util_DX_ViewportF_C1_Util_DX_ViewportF_">operator !=(ViewportF, ViewportF)</a>
        </td>
        <td class="markdown level1 summary"><p>Determines if the specified values are not equal.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
