# C1.Util.DX.Vector2.Item

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Util_DX_Vector2_Item_" data-uid="C1.Util.DX.Vector2.Item*">this Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Util_DX_Vector2_Item_" data-uid="C1.Util.DX.Vector2.Item*"></a>
<h4 id="C1_Util_DX_Vector2_Item_System_Int32_" data-uid="C1.Util.DX.Vector2.Item(System.Int32)">this[int]</h4>
<div class="markdown level1 summary"><p>Gets or sets the component at the specified index.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public float this[int index] { get; set; }</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Default Property Item(index As Integer) As Single</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">index</span></td>
      <td><p>The index of the component to access. Use 0 for the X component and 1 for the Y component.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="propertyValue">Property Value</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><p>The value of the X or Y component, depending on the index.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="exceptions">Exceptions</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Condition</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.argumentoutofrangeexception">ArgumentOutOfRangeException</a></td>
      <td><p>Thrown when the <code class="paramref">index</code> is out of the range [0, 1].</p>
</td>
    </tr>
  </tbody>
</table>
</div>
