# GrapeCity.Documents.Word.OMathMatrix

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="GrapeCity_Documents_Word_OMathMatrix" data-uid="GrapeCity.Documents.Word.OMathMatrix" class="text-break">OMathMatrix Class
</h1>
  <div class="markdown level0 summary"><p>Represents a matrix Office Math structure, which consists of one or more elements laid out in one or more rows and one or more columns.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
    <div class="level1"><a class="xref" href="GrapeCity.Documents.Word.ContentObject.html">ContentObject</a></div>
    <div class="level2"><a class="xref" href="GrapeCity.Documents.Word.OMathStruct.html">OMathStruct</a></div>
    <div class="level3"><span class="xref">OMathMatrix</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="GrapeCity.Documents.Word.IBrowsable-1.html">IBrowsable</a>&lt;<a class="xref" href="GrapeCity.Documents.Word.OMathStruct.html">OMathStruct</a>&gt;</div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="GrapeCity.Documents.Word.html">GrapeCity.Documents.Word</a></h6>
  <h6><strong>Assembly</strong>: DS.Documents.Word.dll</h6>
  <h5 id="GrapeCity_Documents_Word_OMathMatrix_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class OMathMatrix : OMathStruct, IBrowsable&lt;OMathStruct&gt;</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class OMathMatrix
    Inherits OMathStruct
    Implements IBrowsable(Of OMathStruct)</code></pre>
  </div>
  <h3 id="properties">Properties
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="GrapeCity_Documents_Word_OMathMatrix_ColumnGap" data-uid="GrapeCity.Documents.Word.OMathMatrix.ColumnGap">
          <a class="xref" href="GrapeCity.Documents.Word.OMathMatrix.ColumnGap.html#GrapeCity_Documents_Word_OMathMatrix_ColumnGap">ColumnGap</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the horizontal gap between columns in the matrix.</p>
<ul><li>If <a class="xref" href="GrapeCity.Documents.Word.OMathMatrix.ColumnGapRule.html#GrapeCity_Documents_Word_OMathMatrix_ColumnGapRule">ColumnGapRule</a> is set to <a class="xref" href="GrapeCity.Documents.Word.OMathSpacingRule.html#GrapeCity_Documents_Word_OMathSpacingRule_Exactly">Exactly</a> the unit of measure is point; otherwise is em.</li><li>If <a class="xref" href="GrapeCity.Documents.Word.OMathMatrix.ColumnGapRule.html#GrapeCity_Documents_Word_OMathMatrix_ColumnGapRule">ColumnGapRule</a> is set to <a class="xref" href="GrapeCity.Documents.Word.OMathSpacingRule.html#GrapeCity_Documents_Word_OMathSpacingRule_Single">Single</a> the value is always <b>1</b>.</li><li>If <a class="xref" href="GrapeCity.Documents.Word.OMathMatrix.ColumnGapRule.html#GrapeCity_Documents_Word_OMathMatrix_ColumnGapRule">ColumnGapRule</a> is set to <a class="xref" href="GrapeCity.Documents.Word.OMathSpacingRule.html#GrapeCity_Documents_Word_OMathSpacingRule_OneAndHalf">OneAndHalf</a> the value is always <b>1.5</b>.</li><li>If <a class="xref" href="GrapeCity.Documents.Word.OMathMatrix.ColumnGapRule.html#GrapeCity_Documents_Word_OMathMatrix_ColumnGapRule">ColumnGapRule</a> is set to <a class="xref" href="GrapeCity.Documents.Word.OMathSpacingRule.html#GrapeCity_Documents_Word_OMathSpacingRule_Double">Double</a> the value is always <b>2</b>.</li><li>If <a class="xref" href="GrapeCity.Documents.Word.OMathMatrix.ColumnGapRule.html#GrapeCity_Documents_Word_OMathMatrix_ColumnGapRule">ColumnGapRule</a> is set to <a class="xref" href="GrapeCity.Documents.Word.OMathSpacingRule.html#GrapeCity_Documents_Word_OMathSpacingRule_Exactly">Exactly</a> allowed values are from <b>0</b> to <b>1584</b>, inclusive.</li><li>If <a class="xref" href="GrapeCity.Documents.Word.OMathMatrix.ColumnGapRule.html#GrapeCity_Documents_Word_OMathMatrix_ColumnGapRule">ColumnGapRule</a> is set to <a class="xref" href="GrapeCity.Documents.Word.OMathSpacingRule.html#GrapeCity_Documents_Word_OMathSpacingRule_Multiple">Multiple</a> allowed values are from <b>0</b> to <b>132</b>, inclusive.</li></ul>
<p>The default value is <b>0</b>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_OMathMatrix_ColumnGapRule" data-uid="GrapeCity.Documents.Word.OMathMatrix.ColumnGapRule">
          <a class="xref" href="GrapeCity.Documents.Word.OMathMatrix.ColumnGapRule.html#GrapeCity_Documents_Word_OMathMatrix_ColumnGapRule">ColumnGapRule</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the type of horizontal gap between columns in the matrix.</p>
<p>Default value is <a class="xref" href="GrapeCity.Documents.Word.OMathSpacingRule.html#GrapeCity_Documents_Word_OMathSpacingRule_Single">Single</a>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_OMathMatrix_ColumnMinWidth" data-uid="GrapeCity.Documents.Word.OMathMatrix.ColumnMinWidth">
          <a class="xref" href="GrapeCity.Documents.Word.OMathMatrix.ColumnMinWidth.html#GrapeCity_Documents_Word_OMathMatrix_ColumnMinWidth">ColumnMinWidth</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the minimum column width of a matrix.</p>
<p>The actual column width of a matrix will be the greater of either the width of the columns widest argument or the value of this property.</p>
<p>Allowed values are from <b>0</b> to <b>1584</b>, inclusive.</p>
<p>Default value is <b>0</b>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_OMathMatrix_Columns" data-uid="GrapeCity.Documents.Word.OMathMatrix.Columns">
          <a class="xref" href="GrapeCity.Documents.Word.OMathMatrix.Columns.html#GrapeCity_Documents_Word_OMathMatrix_Columns">Columns</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the <a class="xref" href="GrapeCity.Documents.Word.OMathMatrixColumnCollection.html">OMathMatrixColumnCollection</a> containing the child columns of the matrix.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_OMathMatrix_HidePlaceholder" data-uid="GrapeCity.Documents.Word.OMathMatrix.HidePlaceholder">
          <a class="xref" href="GrapeCity.Documents.Word.OMathMatrix.HidePlaceholder.html#GrapeCity_Documents_Word_OMathMatrix_HidePlaceholder">HidePlaceholder</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets whether to hide visual representations for placeholders.</p>
<p>Default value is <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool">false</a>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_OMathMatrix_RowSpacing" data-uid="GrapeCity.Documents.Word.OMathMatrix.RowSpacing">
          <a class="xref" href="GrapeCity.Documents.Word.OMathMatrix.RowSpacing.html#GrapeCity_Documents_Word_OMathMatrix_RowSpacing">RowSpacing</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the vertical spacing between rows in the matrix.</p>
<ul><li>If <a class="xref" href="GrapeCity.Documents.Word.OMathMatrix.RowSpacingRule.html#GrapeCity_Documents_Word_OMathMatrix_RowSpacingRule">RowSpacingRule</a> is set to <a class="xref" href="GrapeCity.Documents.Word.OMathSpacingRule.html#GrapeCity_Documents_Word_OMathSpacingRule_Exactly">Exactly</a>, the unit of measure is point; otherwise is em.</li><li>If <a class="xref" href="GrapeCity.Documents.Word.OMathMatrix.RowSpacingRule.html#GrapeCity_Documents_Word_OMathMatrix_RowSpacingRule">RowSpacingRule</a> is set to <a class="xref" href="GrapeCity.Documents.Word.OMathSpacingRule.html#GrapeCity_Documents_Word_OMathSpacingRule_Single">Single</a>, the value is always <b>1</b>.</li><li>If <a class="xref" href="GrapeCity.Documents.Word.OMathMatrix.RowSpacingRule.html#GrapeCity_Documents_Word_OMathMatrix_RowSpacingRule">RowSpacingRule</a> is set to <a class="xref" href="GrapeCity.Documents.Word.OMathSpacingRule.html#GrapeCity_Documents_Word_OMathSpacingRule_OneAndHalf">OneAndHalf</a>, the value is always <b>1.5</b>.</li><li>If <a class="xref" href="GrapeCity.Documents.Word.OMathMatrix.RowSpacingRule.html#GrapeCity_Documents_Word_OMathMatrix_RowSpacingRule">RowSpacingRule</a> is set to <a class="xref" href="GrapeCity.Documents.Word.OMathSpacingRule.html#GrapeCity_Documents_Word_OMathSpacingRule_Double">Double</a>, the value is always <b>2</b>.</li><li>If <a class="xref" href="GrapeCity.Documents.Word.OMathMatrix.RowSpacingRule.html#GrapeCity_Documents_Word_OMathMatrix_RowSpacingRule">RowSpacingRule</a> is set to <a class="xref" href="GrapeCity.Documents.Word.OMathSpacingRule.html#GrapeCity_Documents_Word_OMathSpacingRule_Exactly">Exactly</a>, allowed values are from <b>0</b> to <b>1584</b>, inclusive.</li><li>If <a class="xref" href="GrapeCity.Documents.Word.OMathMatrix.RowSpacingRule.html#GrapeCity_Documents_Word_OMathMatrix_RowSpacingRule">RowSpacingRule</a> is set to <a class="xref" href="GrapeCity.Documents.Word.OMathSpacingRule.html#GrapeCity_Documents_Word_OMathSpacingRule_Multiple">Multiple</a>, allowed values are from <b>0</b> to <b>132</b>, inclusive.</li></ul>
<p>The default value is <b>0</b>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_OMathMatrix_RowSpacingRule" data-uid="GrapeCity.Documents.Word.OMathMatrix.RowSpacingRule">
          <a class="xref" href="GrapeCity.Documents.Word.OMathMatrix.RowSpacingRule.html#GrapeCity_Documents_Word_OMathMatrix_RowSpacingRule">RowSpacingRule</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the type of vertical spacing between rows in the matrix.</p>
<p>Default value is <a class="xref" href="GrapeCity.Documents.Word.OMathSpacingRule.html#GrapeCity_Documents_Word_OMathSpacingRule_Single">Single</a>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_OMathMatrix_Rows" data-uid="GrapeCity.Documents.Word.OMathMatrix.Rows">
          <a class="xref" href="GrapeCity.Documents.Word.OMathMatrix.Rows.html#GrapeCity_Documents_Word_OMathMatrix_Rows">Rows</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the <a class="xref" href="GrapeCity.Documents.Word.OMathMatrixRowCollection.html">OMathMatrixRowCollection</a> containing the child rows of the matrix.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_OMathMatrix_StructType" data-uid="GrapeCity.Documents.Word.OMathMatrix.StructType">
          <a class="xref" href="GrapeCity.Documents.Word.OMathMatrix.StructType.html#GrapeCity_Documents_Word_OMathMatrix_StructType">StructType</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the <a class="xref" href="GrapeCity.Documents.Word.OMathStructType.html">OMathStructType</a> of the structure.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_OMathMatrix_VerticalAlignment" data-uid="GrapeCity.Documents.Word.OMathMatrix.VerticalAlignment">
          <a class="xref" href="GrapeCity.Documents.Word.OMathMatrix.VerticalAlignment.html#GrapeCity_Documents_Word_OMathMatrix_VerticalAlignment">VerticalAlignment</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the vertical justification of the matrix.</p>
<p>Default value is <a class="xref" href="GrapeCity.Documents.Word.OMathVerticalAlignment.html#GrapeCity_Documents_Word_OMathVerticalAlignment_Center">Center</a>.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="GrapeCity_Documents_Word_OMathMatrix_Cell_System_Int32_System_Int32_" data-uid="GrapeCity.Documents.Word.OMathMatrix.Cell(System.Int32,System.Int32)">
          <a class="xref" href="GrapeCity.Documents.Word.OMathMatrix.Cell.html#GrapeCity_Documents_Word_OMathMatrix_Cell_System_Int32_System_Int32_">Cell(int, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the <a class="xref" href="GrapeCity.Documents.Word.OMathElement.html">OMathElement</a> representing a child cell in the matrix.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
