Class OMathMat (Word VBA)

The class OMathMat represents an equation matrix. To use a OMathMat class variable it first needs to be instantiated, for example

Align

Returns or sets a WdOMathVertAlignType constant that represents the vertical alignment for a matrix. Possible return values are wdOMathVertAlignBottom - Aligns the equation on the bottom of the shape canvas or line, wdOMathVertAlignCenter - Vertically centers the equation in the shape canvas or line, wdOMathVertAlignTop - Aligns the equation on the top of the shape canvas or line.


Dim omm As OMathMat: Set omm =  
omm.Align = wdOMathVertAlignBottom

Cell

Returns an OMath object that represents a cell in a matrix.

Cell (Row, Col)


Dim lngRow As Long: lngRow = 
Dim lngCol As Long: lngCol = 
Dim omm As OMathMat: Set omm =  
Dim omhCell As OMath
Set omhCell = omm.Cell(Row:=lngRow, Col:=lngCol)

Arguments

The following arguments are required:

Row (Long) - The matrix row in which the cell is located.

Col (Long) - The matrix column in which the cell is located.

ColGap

Returns or sets a Long that represents the spacing between columns in a matrix.


Dim omm As OMathMat: Set omm =  
omm.ColGap =

ColGapRule

Returns or sets a WdOMathSpacingRule constant that represents the spacing rule for the space that appears between columns in a matrix. Possible return values are wdOMathSpacing1pt5 - One and half spaces for each line, wdOMathSpacingDouble - Double spacing, wdOMathSpacingExactly - Exact spacing measurement, wdOMathSpacingMultiple - Custom spacing measurement, wdOMathSpacingSingle - Single spacing.


Dim omm As OMathMat: Set omm =  
omm.ColGapRule = wdOMathSpacing1pt5

Cols

Returns an OMathMatCols collection that represents the columns in a matrix.


Dim omm As OMathMat: Set omm =  
Dim ommsCols As OMathMatCols
Set ommsCols = omm.Cols

ColSpacing

Returns or sets a Long that represents the spacing for columns in a matrix.


Dim omm As OMathMat: Set omm =  
omm.ColSpacing =

PlcHoldHidden

Returns or sets a Boolean that represents whether placeholders in a matrix are hidden from display. True hides placeholder text.


Dim omm As OMathMat: Set omm =  
omm.PlcHoldHidden = True

Rows

Returns an OMathMatRows object that represents the rows in a matrix.


Dim omm As OMathMat: Set omm =  
Dim ommsRows As OMathMatRows
Set ommsRows = omm.Rows

RowSpacing

Returns or sets a Long that represents the spacing for rows in a matrix.


Dim omm As OMathMat: Set omm =  
omm.RowSpacing =

RowSpacingRule

Returns or sets a WdOMathSpacingRule constant that represents the spacing rule for rows in a matrix. Possible return values are wdOMathSpacing1pt5 - One and half spaces for each line, wdOMathSpacingDouble - Double spacing, wdOMathSpacingExactly - Exact spacing measurement, wdOMathSpacingMultiple - Custom spacing measurement, wdOMathSpacingSingle - Single spacing.


Dim omm As OMathMat: Set omm =  
omm.RowSpacingRule = wdOMathSpacing1pt5