# C1.C1Preview.C1MultiDocumentItemCollection.Add

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_C1Preview_C1MultiDocumentItemCollection_Add_" data-uid="C1.C1Preview.C1MultiDocumentItemCollection.Add*">Add Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_C1Preview_C1MultiDocumentItemCollection_Add_" data-uid="C1.C1Preview.C1MultiDocumentItemCollection.Add*"></a>
<h4 id="C1_C1Preview_C1MultiDocumentItemCollection_Add_C1_C1Preview_C1PrintDocument_" data-uid="C1.C1Preview.C1MultiDocumentItemCollection.Add(C1.C1Preview.C1PrintDocument)">Add(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 adds it to the current collection.</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 Add(C1PrintDocument document)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function Add(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="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_Add_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_Add_" data-uid="C1.C1Preview.C1MultiDocumentItemCollection.Add*"></a>
<h4 id="C1_C1Preview_C1MultiDocumentItemCollection_Add_C1_C1Preview_C1MultiDocumentItem_" data-uid="C1.C1Preview.C1MultiDocumentItemCollection.Add(C1.C1Preview.C1MultiDocumentItem)">Add(C1MultiDocumentItem)</h4>
<div class="markdown level1 summary"><p>Adds the specified item 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(C1MultiDocumentItem item)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function Add(item As C1MultiDocumentItem) 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.C1MultiDocumentItem.html">C1MultiDocumentItem</a></td>
      <td><span class="parametername">item</span></td>
      <td><p>The item that is added.</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>The index of the added item within the collection.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
