# GrapeCity.Spreadsheet.Drawing.IControlFormat.List

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Spreadsheet_Drawing_IControlFormat_List_" data-uid="GrapeCity.Spreadsheet.Drawing.IControlFormat.List*">List Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Spreadsheet_Drawing_IControlFormat_List_" data-uid="GrapeCity.Spreadsheet.Drawing.IControlFormat.List*"></a>
<h4 id="GrapeCity_Spreadsheet_Drawing_IControlFormat_List_System_String___" data-uid="GrapeCity.Spreadsheet.Drawing.IControlFormat.List(System.String[])">List(string[])</h4>
<div class="markdown level1 summary"><p>Gets or sets the text entries in the specified list box or combo box.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">string[] List(string[] entries = null)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Function List(Optional entries As String() = Nothing) As String()</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">entries</span></td>
      <td><p>The text entries to set. <code>null</code> value will be omitted.</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.string">string</a>[]</td>
      <td><p>The text entries of the list box or combo box.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="GrapeCity_Spreadsheet_Drawing_IControlFormat_List_System_String____remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>Setting this property clears any range specified by the <a class="xref" href="GrapeCity.Spreadsheet.Drawing.IControlFormat.ListFillRange.html#GrapeCity_Spreadsheet_Drawing_IControlFormat_ListFillRange">ListFillRange</a> property.</p>
</div>


<a id="GrapeCity_Spreadsheet_Drawing_IControlFormat_List_" data-uid="GrapeCity.Spreadsheet.Drawing.IControlFormat.List*"></a>
<h4 id="GrapeCity_Spreadsheet_Drawing_IControlFormat_List_System_Int32_System_String_" data-uid="GrapeCity.Spreadsheet.Drawing.IControlFormat.List(System.Int32,System.String)">List(int, string)</h4>
<div class="markdown level1 summary"><p>Gets or sets the single text entry in the specified list box or combo box.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">string List(int index, string entry = null)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Function List(index As Integer, Optional entry As String = Nothing) As String</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 number of a single text entry.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">entry</span></td>
      <td><p>The single text entry to set. <code>null</code> value will be omitted.</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.string">string</a></td>
      <td><p>The single text entry at the specified index.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="GrapeCity_Spreadsheet_Drawing_IControlFormat_List_System_Int32_System_String__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>Setting this property clears any range specified by the <a class="xref" href="GrapeCity.Spreadsheet.Drawing.IControlFormat.ListFillRange.html#GrapeCity_Spreadsheet_Drawing_IControlFormat_ListFillRange">ListFillRange</a> property.</p>
</div>
</div>
