# GrapeCity.Documents.Word.OMathStructCollection.InsertMatrix

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Documents_Word_OMathStructCollection_InsertMatrix_" data-uid="GrapeCity.Documents.Word.OMathStructCollection.InsertMatrix*">InsertMatrix Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Documents_Word_OMathStructCollection_InsertMatrix_" data-uid="GrapeCity.Documents.Word.OMathStructCollection.InsertMatrix*"></a>
<h4 id="GrapeCity_Documents_Word_OMathStructCollection_InsertMatrix_GrapeCity_Documents_Word_InsertLocation_" data-uid="GrapeCity.Documents.Word.OMathStructCollection.InsertMatrix(GrapeCity.Documents.Word.InsertLocation)">InsertMatrix(InsertLocation)</h4>
<div class="markdown level1 summary"><p>Inserts a new <a class="xref" href="GrapeCity.Documents.Word.OMathMatrix.html">OMathMatrix</a> into the collection at the specified location.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public OMathMatrix InsertMatrix(InsertLocation location)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function InsertMatrix(location As InsertLocation) As OMathMatrix</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.InsertLocation.html">InsertLocation</a></td>
      <td><span class="parametername">location</span></td>
      <td><p>The target <a class="xref" href="GrapeCity.Documents.Word.InsertLocation.html">InsertLocation</a> for the insertion.</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.OMathMatrix.html">OMathMatrix</a></td>
      <td><p>The inserted <a class="xref" href="GrapeCity.Documents.Word.OMathMatrix.html">OMathMatrix</a> instance.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Documents_Word_OMathStructCollection_InsertMatrix_" data-uid="GrapeCity.Documents.Word.OMathStructCollection.InsertMatrix*"></a>
<h4 id="GrapeCity_Documents_Word_OMathStructCollection_InsertMatrix_System_Int32_System_Int32_GrapeCity_Documents_Word_InsertLocation_" data-uid="GrapeCity.Documents.Word.OMathStructCollection.InsertMatrix(System.Int32,System.Int32,GrapeCity.Documents.Word.InsertLocation)">InsertMatrix(int, int, InsertLocation)</h4>
<div class="markdown level1 summary"><p>Inserts a new <a class="xref" href="GrapeCity.Documents.Word.OMathMatrix.html">OMathMatrix</a> into the collection at the specified location.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public OMathMatrix InsertMatrix(int rows, int columns, InsertLocation location)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function InsertMatrix(rows As Integer, columns As Integer, location As InsertLocation) As OMathMatrix</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">rows</span></td>
      <td><p>Count of rows in the matrix.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">columns</span></td>
      <td><p>Count of columns in the matrix.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.Documents.Word.InsertLocation.html">InsertLocation</a></td>
      <td><span class="parametername">location</span></td>
      <td><p>The target <a class="xref" href="GrapeCity.Documents.Word.InsertLocation.html">InsertLocation</a> for the insertion.</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.OMathMatrix.html">OMathMatrix</a></td>
      <td><p>The inserted <a class="xref" href="GrapeCity.Documents.Word.OMathMatrix.html">OMathMatrix</a> instance.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Documents_Word_OMathStructCollection_InsertMatrix_" data-uid="GrapeCity.Documents.Word.OMathStructCollection.InsertMatrix*"></a>
<h4 id="GrapeCity_Documents_Word_OMathStructCollection_InsertMatrix_System_String_0__0___GrapeCity_Documents_Word_InsertLocation_" data-uid="GrapeCity.Documents.Word.OMathStructCollection.InsertMatrix(System.String[0:,0:],GrapeCity.Documents.Word.InsertLocation)">InsertMatrix(string[,], InsertLocation)</h4>
<div class="markdown level1 summary"><p>Inserts a new <a class="xref" href="GrapeCity.Documents.Word.OMathMatrix.html">OMathMatrix</a> into the collection at the specified location.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public OMathMatrix InsertMatrix(string[,] cellsText, InsertLocation location)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function InsertMatrix(cellsText As String(,), location As InsertLocation) As OMathMatrix</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">cellsText</span></td>
      <td><p>The structure cells text array.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.Documents.Word.InsertLocation.html">InsertLocation</a></td>
      <td><span class="parametername">location</span></td>
      <td><p>The target <a class="xref" href="GrapeCity.Documents.Word.InsertLocation.html">InsertLocation</a> for the insertion.</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.OMathMatrix.html">OMathMatrix</a></td>
      <td><p>The inserted <a class="xref" href="GrapeCity.Documents.Word.OMathMatrix.html">OMathMatrix</a> instance.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Documents_Word_OMathStructCollection_InsertMatrix_" data-uid="GrapeCity.Documents.Word.OMathStructCollection.InsertMatrix*"></a>
<h4 id="GrapeCity_Documents_Word_OMathStructCollection_InsertMatrix_System_Nullable_System_Int32__0__0___GrapeCity_Documents_Word_InsertLocation_" data-uid="GrapeCity.Documents.Word.OMathStructCollection.InsertMatrix(System.Nullable{System.Int32}[0:,0:],GrapeCity.Documents.Word.InsertLocation)">InsertMatrix(int?[,], InsertLocation)</h4>
<div class="markdown level1 summary"><p>Inserts a new <a class="xref" href="GrapeCity.Documents.Word.OMathMatrix.html">OMathMatrix</a> into the collection at the specified location.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public OMathMatrix InsertMatrix(int?[,] cellsValue, InsertLocation location)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function InsertMatrix(cellsValue As Integer?(,), location As InsertLocation) As OMathMatrix</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">cellsValue</span></td>
      <td><p>The structure cells value array.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.Documents.Word.InsertLocation.html">InsertLocation</a></td>
      <td><span class="parametername">location</span></td>
      <td><p>The target <a class="xref" href="GrapeCity.Documents.Word.InsertLocation.html">InsertLocation</a> for the insertion.</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.OMathMatrix.html">OMathMatrix</a></td>
      <td><p>The inserted <a class="xref" href="GrapeCity.Documents.Word.OMathMatrix.html">OMathMatrix</a> instance.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
