# C1.Blazor.Grid.GridLength

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Blazor_Grid_GridLength" data-uid="C1.Blazor.Grid.GridLength" class="text-break">GridLength Struct
</h1>
  <div class="markdown level0 summary"><p>Used to define the size of the columns of <a class="xref" href="C1.Blazor.Grid.C1GridControl.html">C1GridControl</a>.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Blazor.Grid.html">C1.Blazor.Grid</a></h6>
  <h6><strong>Assembly</strong>: C1.Blazor.GridControl.dll</h6>
  <h5 id="C1_Blazor_Grid_GridLength_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public struct GridLength</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Structure GridLength</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_Blazor_Grid_GridLength__ctor_System_Double_" data-uid="C1.Blazor.Grid.GridLength.#ctor(System.Double)">
          <a class="xref" href="C1.Blazor.Grid.GridLength.-ctor.html#C1_Blazor_Grid_GridLength__ctor_System_Double_">GridLength(double)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Blazor.Grid.GridLength.html">GridLength</a> struct.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Blazor_Grid_GridLength__ctor_System_Double_C1_Blazor_Grid_GridUnitType_" data-uid="C1.Blazor.Grid.GridLength.#ctor(System.Double,C1.Blazor.Grid.GridUnitType)">
          <a class="xref" href="C1.Blazor.Grid.GridLength.-ctor.html#C1_Blazor_Grid_GridLength__ctor_System_Double_C1_Blazor_Grid_GridUnitType_">GridLength(double, GridUnitType)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Blazor.Grid.GridLength.html">GridLength</a> struct.</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_Blazor_Grid_GridLength_GridUnitType" data-uid="C1.Blazor.Grid.GridLength.GridUnitType">
          <a class="xref" href="C1.Blazor.Grid.GridLength.GridUnitType.html#C1_Blazor_Grid_GridLength_GridUnitType">GridUnitType</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the GridUnitType of the GridLength</p>
</td>
      </tr>
      <tr>
        <td id="C1_Blazor_Grid_GridLength_IsAbsolute" data-uid="C1.Blazor.Grid.GridLength.IsAbsolute">
          <a class="xref" href="C1.Blazor.Grid.GridLength.IsAbsolute.html#C1_Blazor_Grid_GridLength_IsAbsolute">IsAbsolute</a>
        </td>
        <td class="markdown level1 summary"><p>Gets whether or not the GridUnitType of the GridLength is GridUnitType.Absolute.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Blazor_Grid_GridLength_IsAuto" data-uid="C1.Blazor.Grid.GridLength.IsAuto">
          <a class="xref" href="C1.Blazor.Grid.GridLength.IsAuto.html#C1_Blazor_Grid_GridLength_IsAuto">IsAuto</a>
        </td>
        <td class="markdown level1 summary"><p>Gets whether or not the GridUnitType of the GridLength is GridUnitType.Auto.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Blazor_Grid_GridLength_IsStar" data-uid="C1.Blazor.Grid.GridLength.IsStar">
          <a class="xref" href="C1.Blazor.Grid.GridLength.IsStar.html#C1_Blazor_Grid_GridLength_IsStar">IsStar</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a value that indicates whether the GridUnitType of the GridLength is GridUnitType.Star.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Blazor_Grid_GridLength_Star" data-uid="C1.Blazor.Grid.GridLength.Star">
          <a class="xref" href="C1.Blazor.Grid.GridLength.Star.html#C1_Blazor_Grid_GridLength_Star">Star</a>
        </td>
        <td class="markdown level1 summary"><p>A ready to reuse GridLength of GridUnitType.Star with a Value of 1.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Blazor_Grid_GridLength_Value" data-uid="C1.Blazor.Grid.GridLength.Value">
          <a class="xref" href="C1.Blazor.Grid.GridLength.Value.html#C1_Blazor_Grid_GridLength_Value">Value</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the Value of the GridLength.</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_Blazor_Grid_GridLength_Equals_System_Object_" data-uid="C1.Blazor.Grid.GridLength.Equals(System.Object)">
          <a class="xref" href="C1.Blazor.Grid.GridLength.Equals.html#C1_Blazor_Grid_GridLength_Equals_System_Object_">Equals(object)</a>
        </td>
        <td class="markdown level1 summary"><p>Determines whether the specified <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a>, is equal to this instance.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Blazor_Grid_GridLength_GetHashCode" data-uid="C1.Blazor.Grid.GridLength.GetHashCode">
          <a class="xref" href="C1.Blazor.Grid.GridLength.GetHashCode.html#C1_Blazor_Grid_GridLength_GetHashCode">GetHashCode()</a>
        </td>
        <td class="markdown level1 summary"><p>Returns a hash code for this instance.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Blazor_Grid_GridLength_Parse_System_String_" data-uid="C1.Blazor.Grid.GridLength.Parse(System.String)">
          <a class="xref" href="C1.Blazor.Grid.GridLength.Parse.html#C1_Blazor_Grid_GridLength_Parse_System_String_">Parse(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Parses a string into a <a class="xref" href="C1.Blazor.Grid.GridLength.html">GridLength</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Blazor_Grid_GridLength_ToString" data-uid="C1.Blazor.Grid.GridLength.ToString">
          <a class="xref" href="C1.Blazor.Grid.GridLength.ToString.html#C1_Blazor_Grid_GridLength_ToString">ToString()</a>
        </td>
        <td class="markdown level1 summary"><p>Returns a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a> that represents this instance.</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_Blazor_Grid_GridLength_op_Addition_C1_Blazor_Grid_GridLength_C1_Blazor_Grid_GridLength_" data-uid="C1.Blazor.Grid.GridLength.op_Addition(C1.Blazor.Grid.GridLength,C1.Blazor.Grid.GridLength)">
          <a class="xref" href="C1.Blazor.Grid.GridLength.op_Addition.html#C1_Blazor_Grid_GridLength_op_Addition_C1_Blazor_Grid_GridLength_C1_Blazor_Grid_GridLength_">operator +(GridLength, GridLength)</a>
        </td>
        <td class="markdown level1 summary"><p>Implements the operator +.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Blazor_Grid_GridLength_op_Implicit_System_Double__C1_Blazor_Grid_GridLength" data-uid="C1.Blazor.Grid.GridLength.op_Implicit(System.Double)~C1.Blazor.Grid.GridLength">
          <a class="xref" href="C1.Blazor.Grid.GridLength.op_Implicit.html#C1_Blazor_Grid_GridLength_op_Implicit_System_Double__C1_Blazor_Grid_GridLength">implicit operator GridLength(double)</a>
        </td>
        <td class="markdown level1 summary"><p>Casting operator to convert a double into a GridLength of type GridUnitType.Absolute.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Blazor_Grid_GridLength_op_Implicit_System_String__C1_Blazor_Grid_GridLength" data-uid="C1.Blazor.Grid.GridLength.op_Implicit(System.String)~C1.Blazor.Grid.GridLength">
          <a class="xref" href="C1.Blazor.Grid.GridLength.op_Implicit.html#C1_Blazor_Grid_GridLength_op_Implicit_System_String__C1_Blazor_Grid_GridLength">implicit operator GridLength(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Casting operator to convert a string into a GridLength.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
