# GrapeCity.Documents.Word.GcWordDocument.MergeDocuments

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Documents_Word_GcWordDocument_MergeDocuments_" data-uid="GrapeCity.Documents.Word.GcWordDocument.MergeDocuments*">MergeDocuments Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Documents_Word_GcWordDocument_MergeDocuments_" data-uid="GrapeCity.Documents.Word.GcWordDocument.MergeDocuments*"></a>
<h4 id="GrapeCity_Documents_Word_GcWordDocument_MergeDocuments_GrapeCity_Documents_Word_FormattingCopyStrategy_GrapeCity_Documents_Word_GcWordDocument___" data-uid="GrapeCity.Documents.Word.GcWordDocument.MergeDocuments(GrapeCity.Documents.Word.FormattingCopyStrategy,GrapeCity.Documents.Word.GcWordDocument[])">MergeDocuments(FormattingCopyStrategy, params GcWordDocument[])</h4>
<div class="markdown level1 summary"><p>Merges several source documents into a single new <a class="xref" href="GrapeCity.Documents.Word.GcWordDocument.html">GcWordDocument</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static GcWordDocument MergeDocuments(FormattingCopyStrategy copyStrategy, params GcWordDocument[] mergedDocuments)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function MergeDocuments(copyStrategy As FormattingCopyStrategy, ParamArray mergedDocuments As GcWordDocument()) As GcWordDocument</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="GrapeCity.Documents.Word.FormattingCopyStrategy.html">FormattingCopyStrategy</a></td>
      <td><span class="parametername">copyStrategy</span></td>
      <td><p>Specifies how formatting of the source documents is handled.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.Documents.Word.GcWordDocument.html">GcWordDocument</a>[]</td>
      <td><span class="parametername">mergedDocuments</span></td>
      <td><p>The source documents to merge.</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="GrapeCity.Documents.Word.GcWordDocument.html">GcWordDocument</a></td>
      <td><p>The newly created <a class="xref" href="GrapeCity.Documents.Word.GcWordDocument.html">GcWordDocument</a> consisting of the merged <a class="xref" href="GrapeCity.Documents.Word.GcWordDocument.Body.html#GrapeCity_Documents_Word_GcWordDocument_Body">Body</a> ranges of the source documents.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Documents_Word_GcWordDocument_MergeDocuments_" data-uid="GrapeCity.Documents.Word.GcWordDocument.MergeDocuments*"></a>
<h4 id="GrapeCity_Documents_Word_GcWordDocument_MergeDocuments_System_ValueTuple_GrapeCity_Documents_Word_GcWordDocument_GrapeCity_Documents_Word_FormattingCopyStrategy____" data-uid="GrapeCity.Documents.Word.GcWordDocument.MergeDocuments(System.ValueTuple{GrapeCity.Documents.Word.GcWordDocument,GrapeCity.Documents.Word.FormattingCopyStrategy}[])">MergeDocuments(params (GcWordDocument, FormattingCopyStrategy)[])</h4>
<div class="markdown level1 summary"><p>Merges several source documents into a single new <a class="xref" href="GrapeCity.Documents.Word.GcWordDocument.html">GcWordDocument</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static GcWordDocument MergeDocuments(params (GcWordDocument, FormattingCopyStrategy)[] mergedDocuments)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function MergeDocuments(ParamArray mergedDocuments As (GcWordDocument, FormattingCopyStrategy)()) As GcWordDocument</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="GrapeCity.Documents.Word.GcWordDocument.html">GcWordDocument</a>, <a class="xref" href="GrapeCity.Documents.Word.FormattingCopyStrategy.html">FormattingCopyStrategy</a>)[]</td>
      <td><span class="parametername">mergedDocuments</span></td>
      <td><p>An array of pairs of source documents and corresponding formatting copy strategies.</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="GrapeCity.Documents.Word.GcWordDocument.html">GcWordDocument</a></td>
      <td><p>The newly created <a class="xref" href="GrapeCity.Documents.Word.GcWordDocument.html">GcWordDocument</a> consisting of the merged <a class="xref" href="GrapeCity.Documents.Word.GcWordDocument.Body.html#GrapeCity_Documents_Word_GcWordDocument_Body">Body</a> ranges of the source documents.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Documents_Word_GcWordDocument_MergeDocuments_" data-uid="GrapeCity.Documents.Word.GcWordDocument.MergeDocuments*"></a>
<h4 id="GrapeCity_Documents_Word_GcWordDocument_MergeDocuments_GrapeCity_Documents_Word_GcWordDocument___" data-uid="GrapeCity.Documents.Word.GcWordDocument.MergeDocuments(GrapeCity.Documents.Word.GcWordDocument[])">MergeDocuments(params GcWordDocument[])</h4>
<div class="markdown level1 summary"><p>Merges several source documents into a single new <a class="xref" href="GrapeCity.Documents.Word.GcWordDocument.html">GcWordDocument</a>,
using <a class="xref" href="GrapeCity.Documents.Word.FormattingCopyStrategy.html#GrapeCity_Documents_Word_FormattingCopyStrategy_Copy">Copy</a> to preserve formatting of the source documents.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static GcWordDocument MergeDocuments(params GcWordDocument[] mergedDocuments)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function MergeDocuments(ParamArray mergedDocuments As GcWordDocument()) As GcWordDocument</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="GrapeCity.Documents.Word.GcWordDocument.html">GcWordDocument</a>[]</td>
      <td><span class="parametername">mergedDocuments</span></td>
      <td><p>The source documents to merge.</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="GrapeCity.Documents.Word.GcWordDocument.html">GcWordDocument</a></td>
      <td><p>The newly created <a class="xref" href="GrapeCity.Documents.Word.GcWordDocument.html">GcWordDocument</a> consisting of the merged <a class="xref" href="GrapeCity.Documents.Word.GcWordDocument.Body.html#GrapeCity_Documents_Word_GcWordDocument_Body">Body</a> ranges of the source documents.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
