# FarPoint.Win.Spread.CustomIconContainer.InsertIcon

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="FarPoint_Win_Spread_CustomIconContainer_InsertIcon_" data-uid="FarPoint.Win.Spread.CustomIconContainer.InsertIcon*">InsertIcon Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="FarPoint_Win_Spread_CustomIconContainer_InsertIcon_" data-uid="FarPoint.Win.Spread.CustomIconContainer.InsertIcon*"></a>
<h4 id="FarPoint_Win_Spread_CustomIconContainer_InsertIcon_System_Int32_System_String_System_Drawing_Icon_" data-uid="FarPoint.Win.Spread.CustomIconContainer.InsertIcon(System.Int32,System.String,System.Drawing.Icon)">InsertIcon(int, string, Icon)</h4>
<div class="markdown level1 summary"><p>Inserts an icon object into a container with the specified name at a 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 void InsertIcon(int index, string name, Icon icon)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub InsertIcon(index As Integer, name As String, icon As Icon)</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>Index at which to insert the icon object</p>
</td>
    </tr>
    <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>Name of the icon object</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.icon">Icon</a></td>
      <td><span class="parametername">icon</span></td>
      <td><p>The icon object</p>
</td>
    </tr>
  </tbody>
</table>
</div>
