# C1.C1Preview.C1MultiDocumentItemCollection.Insert

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_C1Preview_C1MultiDocumentItemCollection_Insert_" data-uid="C1.C1Preview.C1MultiDocumentItemCollection.Insert*">Insert Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_C1Preview_C1MultiDocumentItemCollection_Insert_" data-uid="C1.C1Preview.C1MultiDocumentItemCollection.Insert*"></a>
<h4 id="C1_C1Preview_C1MultiDocumentItemCollection_Insert_System_Int32_C1_C1Preview_C1PrintDocument_" data-uid="C1.C1Preview.C1MultiDocumentItemCollection.Insert(System.Int32,C1.C1Preview.C1PrintDocument)">Insert(int, C1PrintDocument)</h4>
<div class="markdown level1 summary"><p>Creates a <a class="xref" href="C1.C1Preview.C1MultiDocumentItem.html">C1MultiDocumentItem</a>, associates it with the specified document,
and inserts it into the current collection at the specified index.</p>
<p>
Note that the passed document reference is not stored in the created item,
see <a class="xref" href="C1.C1Preview.C1MultiDocumentItem.SetDocument.html#C1_C1Preview_C1MultiDocumentItem_SetDocument_System_Object_">SetDocument(object)</a> for details.
</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public C1MultiDocumentItem Insert(int index, C1PrintDocument document)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function Insert(index As Integer, document As C1PrintDocument) As C1MultiDocumentItem</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 zero-based index at which the new item should be inserted.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.C1Preview.C1PrintDocument.html">C1PrintDocument</a></td>
      <td><span class="parametername">document</span></td>
      <td><p>The document that is associated with the new item.</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="C1.C1Preview.C1MultiDocumentItem.html">C1MultiDocumentItem</a></td>
      <td><p>The newly created item.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_C1Preview_C1MultiDocumentItemCollection_Insert_System_Int32_C1_C1Preview_C1PrintDocument__seealso">See Also</h5>
<div class="seealso">
    <div><a class="xref" href="C1.C1Preview.C1MultiDocumentItem.SetDocument.html#C1_C1Preview_C1MultiDocumentItem_SetDocument_System_Object_">SetDocument</a>(<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a>)</div>
</div>


<a id="C1_C1Preview_C1MultiDocumentItemCollection_Insert_" data-uid="C1.C1Preview.C1MultiDocumentItemCollection.Insert*"></a>
<h4 id="C1_C1Preview_C1MultiDocumentItemCollection_Insert_System_Int32_C1_C1Preview_C1MultiDocumentItem_" data-uid="C1.C1Preview.C1MultiDocumentItemCollection.Insert(System.Int32,C1.C1Preview.C1MultiDocumentItem)">Insert(int, C1MultiDocumentItem)</h4>
<div class="markdown level1 summary"><p>Inserts an item into the current collection 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 void Insert(int index, C1MultiDocumentItem item)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub Insert(index As Integer, item As C1MultiDocumentItem)</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 zero-based index at which the item should be inserted.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.C1Preview.C1MultiDocumentItem.html">C1MultiDocumentItem</a></td>
      <td><span class="parametername">item</span></td>
      <td><p>The item to insert.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
