# GrapeCity.Documents.Word.OMathStructCollection.AddMatrix

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Documents_Word_OMathStructCollection_AddMatrix_" data-uid="GrapeCity.Documents.Word.OMathStructCollection.AddMatrix*">AddMatrix Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Documents_Word_OMathStructCollection_AddMatrix_" data-uid="GrapeCity.Documents.Word.OMathStructCollection.AddMatrix*"></a>
<h4 id="GrapeCity_Documents_Word_OMathStructCollection_AddMatrix" data-uid="GrapeCity.Documents.Word.OMathStructCollection.AddMatrix">AddMatrix()</h4>
<div class="markdown level1 summary"><p>Adds a new <a class="xref" href="GrapeCity.Documents.Word.OMathMatrix.html">OMathMatrix</a> to the collection at the <a class="xref" href="GrapeCity.Documents.Word.InsertLocation.html#GrapeCity_Documents_Word_InsertLocation_End">End</a> 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 AddMatrix()</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function AddMatrix() As OMathMatrix</code></pre>
</div>
<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 added <a class="xref" href="GrapeCity.Documents.Word.OMathMatrix.html">OMathMatrix</a> instance.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Documents_Word_OMathStructCollection_AddMatrix_" data-uid="GrapeCity.Documents.Word.OMathStructCollection.AddMatrix*"></a>
<h4 id="GrapeCity_Documents_Word_OMathStructCollection_AddMatrix_System_Int32_System_Int32_" data-uid="GrapeCity.Documents.Word.OMathStructCollection.AddMatrix(System.Int32,System.Int32)">AddMatrix(int, int)</h4>
<div class="markdown level1 summary"><p>Adds a new <a class="xref" href="GrapeCity.Documents.Word.OMathMatrix.html">OMathMatrix</a> to the collection at the <a class="xref" href="GrapeCity.Documents.Word.InsertLocation.html#GrapeCity_Documents_Word_InsertLocation_End">End</a> 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 AddMatrix(int rows, int columns)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function AddMatrix(rows As Integer, columns As Integer) 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>
  </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 added <a class="xref" href="GrapeCity.Documents.Word.OMathMatrix.html">OMathMatrix</a> instance.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Documents_Word_OMathStructCollection_AddMatrix_" data-uid="GrapeCity.Documents.Word.OMathStructCollection.AddMatrix*"></a>
<h4 id="GrapeCity_Documents_Word_OMathStructCollection_AddMatrix_System_String_0__0___" data-uid="GrapeCity.Documents.Word.OMathStructCollection.AddMatrix(System.String[0:,0:])">AddMatrix(string[,])</h4>
<div class="markdown level1 summary"><p>Adds a new <a class="xref" href="GrapeCity.Documents.Word.OMathMatrix.html">OMathMatrix</a> to the collection at the <a class="xref" href="GrapeCity.Documents.Word.InsertLocation.html#GrapeCity_Documents_Word_InsertLocation_End">End</a> 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 AddMatrix(string[,] cellsText)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function AddMatrix(cellsText As String(,)) 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>
  </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 added <a class="xref" href="GrapeCity.Documents.Word.OMathMatrix.html">OMathMatrix</a> instance.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Documents_Word_OMathStructCollection_AddMatrix_" data-uid="GrapeCity.Documents.Word.OMathStructCollection.AddMatrix*"></a>
<h4 id="GrapeCity_Documents_Word_OMathStructCollection_AddMatrix_System_Nullable_System_Int32__0__0___" data-uid="GrapeCity.Documents.Word.OMathStructCollection.AddMatrix(System.Nullable{System.Int32}[0:,0:])">AddMatrix(int?[,])</h4>
<div class="markdown level1 summary"><p>Adds a new <a class="xref" href="GrapeCity.Documents.Word.OMathMatrix.html">OMathMatrix</a> to the collection at the <a class="xref" href="GrapeCity.Documents.Word.InsertLocation.html#GrapeCity_Documents_Word_InsertLocation_End">End</a> 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 AddMatrix(int?[,] cellsValue)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function AddMatrix(cellsValue As Integer?(,)) 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>
  </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 added <a class="xref" href="GrapeCity.Documents.Word.OMathMatrix.html">OMathMatrix</a> instance.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
