# FarPoint.Win.Spread.NamedObjectCollection-1.Item

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="FarPoint_Win_Spread_NamedObjectCollection_1_Item_" data-uid="FarPoint.Win.Spread.NamedObjectCollection`1.Item*">this Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="FarPoint_Win_Spread_NamedObjectCollection_1_Item_" data-uid="FarPoint.Win.Spread.NamedObjectCollection`1.Item*"></a>
<h4 id="FarPoint_Win_Spread_NamedObjectCollection_1_Item_System_String_" data-uid="FarPoint.Win.Spread.NamedObjectCollection`1.Item(System.String)">this[string]</h4>
<div class="markdown level1 summary"><p>Gets or sets the element with the specified name.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public virtual T this[string name] { get; set; }</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Overridable Default Property Item(name As String) As T</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.string">string</a></td>
      <td><span class="parametername">name</span></td>
      <td><p>The item's name.</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><span class="xref">T</span></td>
      <td><p>An <a class="xref" href="FarPoint.Win.Spread.INamedObject.html">INamedObject</a> value that indicates the specified item.</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.argumentnullexception">ArgumentNullException</a></td>
      <td><p>The assigned value is <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null">null</a>.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.argumentexception">ArgumentException</a></td>
      <td><p>The item associated with the <code class="paramref">name</code> cannot be found.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
