# C1.C1Preview.RenderInputComboBoxItemCollection.Add

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_C1Preview_RenderInputComboBoxItemCollection_Add_" data-uid="C1.C1Preview.RenderInputComboBoxItemCollection.Add*">Add Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_C1Preview_RenderInputComboBoxItemCollection_Add_" data-uid="C1.C1Preview.RenderInputComboBoxItemCollection.Add*"></a>
<h4 id="C1_C1Preview_RenderInputComboBoxItemCollection_Add_C1_C1Preview_RenderInputComboBoxItem_" data-uid="C1.C1Preview.RenderInputComboBoxItemCollection.Add(C1.C1Preview.RenderInputComboBoxItem)">Add(RenderInputComboBoxItem)</h4>
<div class="markdown level1 summary"><p>Adds a <a class="xref" href="C1.C1Preview.RenderInputComboBoxItem.html">RenderInputComboBoxItem</a> to the current collection.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public int Add(RenderInputComboBoxItem item)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function Add(item As RenderInputComboBoxItem) As Integer</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="C1.C1Preview.RenderInputComboBoxItem.html">RenderInputComboBoxItem</a></td>
      <td><span class="parametername">item</span></td>
      <td><p>The item to add.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</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.int32">int</a></td>
      <td><p>Index of the added item in the current collection.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_C1Preview_RenderInputComboBoxItemCollection_Add_" data-uid="C1.C1Preview.RenderInputComboBoxItemCollection.Add*"></a>
<h4 id="C1_C1Preview_RenderInputComboBoxItemCollection_Add_System_String_" data-uid="C1.C1Preview.RenderInputComboBoxItemCollection.Add(System.String)">Add(string)</h4>
<div class="markdown level1 summary"><p>Creates a new <a class="xref" href="C1.C1Preview.RenderInputComboBoxItem.html">RenderInputComboBoxItem</a>, initializing its <a class="xref" href="C1.C1Preview.RenderInputComboBoxItem.Text.html#C1_C1Preview_RenderInputComboBoxItem_Text">Text</a>
with the passed string, and adds it to the current collection.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public int Add(string itemText)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function Add(itemText As String) As Integer</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">itemText</span></td>
      <td><p>The text of the item to add.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</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.int32">int</a></td>
      <td><p>Index of the added item in the current collection.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
