MathMatrix

MathMatrix class

Specifies the Matrix object, consisting of child elements laid out in one or more rows and columns. It is important to note that matrices do not have built in delimiters. To place the matrix in the brackets you should use the delimiter object (IMathDelimiter). Null arguments can be used to create gaps in matrices.

MathMatrix

NameDescription
MathMatrix(int, int)Initializes a new instance of the MathMatrix class.

Parameters:

NameTypeDescription
rowCountintrow count
columnCountintcolumn count

Returns: MathMatrix


deleteColumn

NameDescription
deleteColumn (int)Deletes the specified column

Parameters:

NameTypeDescription
columnIndexintThe zero-based index of the column to delete.

Returns: void

Exception

ErrorCondition
ArgumentOutOfRangeExceptionIf columnIndex less than zero or greater or equal to the ColumnCount

deleteRow

NameDescription
deleteRow (int)Deletes the specified row

Parameters:

NameTypeDescription
rowIndexintThe zero-based index of the row to delete.

Returns: void

Exception

ErrorCondition
ArgumentOutOfRangeExceptionIf rowIndex less than zero or greater or equal to the RowCount

getBaseJustification

NameDescription
getBaseJustification ()Specifies the vertical justification respect to surrounding text. Possible values are top, bottom, and center. Default: Center

Returns: int


getChildren

NameDescription
getChildren ()Get children elements

Returns: MathLeftSubSuperscriptElement, MathLimit, MathMatrix, MathBlock, MathRadical, MathArray, MathDelimiter, MathNaryOperator, MathAccent, MathGroupingCharacter, MathBorderBox, MathBar, MathSuperscriptElement, MathSubscriptElement, MathFunction, MathematicalText, MathFraction, BaseScript, MathBox, MathElementBase, MathRightSubSuperscriptElement


getColumnAlignment

NameDescription
getColumnAlignment (int)Get the horizontal alignment of the specified column

Parameters:

NameTypeDescription
columnIndexintZero-based column index

Returns: int


getColumnCount

NameDescription
getColumnCount ()Number of columns in the matrix

Returns: int


getColumnGap

NameDescription
getColumnGap ()The value of horizontal spacing between columns of a matrix; If the ColumnGapRule is set to 3 (“Exactly”), then the unit is interpreted as twips (1/20th of a point) If the ColumnGapRule is set to 4 (“Multiple”), then the unit is interpreted as number of 0.5 em increments. In other cases ignored. Default: 0

Returns: long


getColumnGapRule

NameDescription
getColumnGapRule ()The type of horizontal spacing between columns of a matrix; Horizontal spacing units can be ems or points (stored as twips). Default: SingleSpacingGap (0)

Returns: int


getHidePlaceholders

NameDescription
getHidePlaceholders ()Hide the placeholders for empty matrix elements Default: false

Returns: boolean


getMinColumnWidth

NameDescription
getMinColumnWidth ()Minimum column width in twips (1/20th of a point) The gap spacing (also referred to as “Column Gap” or “Gap Width”) is added to the MinColumnWidth to determine the total Matrix Column Spacing (distance between the same edges of different columns). Default: 0.

Returns: long


getRowCount

NameDescription
getRowCount ()Number of rows in the matrix

Returns: int


getRowGap

NameDescription
getRowGap ()The value of vertical spacing between rows of a matrix; If the RowGapRule is set to 3 (“Exactly”), then the unit is interpreted as twips (1/20th of a point) If the RowGapRule is set to 4 (“Multiple”), then the unit is interpreted as half-lines. Default: 0

Returns: long


getRowGapRule

NameDescription
getRowGapRule ()The type of vertical spacing between rows of a matrix; Vertical spacing units can be lines or points (stored as twips). Default: SingleSpacingGap (0)

Returns: int


get_Item

NameDescription
get_Item (int, int)Element of matrix

Parameters:

NameTypeDescription
rowintThe zero-based index of the row to get item
columnintThe zero-based index of the column to get item

Returns: MathLeftSubSuperscriptElement, MathLimit, MathMatrix, MathBlock, MathRadical, MathArray, MathDelimiter, MathNaryOperator, MathAccent, MathGroupingCharacter, MathBorderBox, MathBar, MathSuperscriptElement, MathSubscriptElement, MathFunction, MathematicalText, MathFraction, BaseScript, MathBox, MathElementBase, MathRightSubSuperscriptElement


insertColumnAfter

NameDescription
insertColumnAfter (int)Insert a new column after the specified one Initially all elements in the new column are null.

Parameters:

NameTypeDescription
columnIndexintIndex of the column after which to insert a new one

Returns: void


insertColumnBefore

NameDescription
insertColumnBefore (int)Insert a new column before the specified one Initially all elements in the new column are null.

Parameters:

NameTypeDescription
columnIndexintIndex of the column before which to insert a new one

Returns: void


insertRowAfter

NameDescription
insertRowAfter (int)Insert a new row after the specified one Initially all elements in the new row are null.

Parameters:

NameTypeDescription
rowIndexintIndex of the row after which to insert a new one

Returns: void


insertRowBefore

NameDescription
insertRowBefore (int)Insert a new row before the specified one Initially all elements in the new row are null.

Parameters:

NameTypeDescription
rowIndexintIndex of the row before which to insert a new one

Returns: void


setBaseJustification

NameDescription
setBaseJustification (int)Specifies the vertical justification respect to surrounding text. Possible values are top, bottom, and center. Default: Center

Returns: void


setColumnAlignment

NameDescription
setColumnAlignment (int, int)Set the horizontal alignment of the specified column

Parameters:

NameTypeDescription
columnIndexintZero-based column index
valintNew value of horizontal alignment of specified column

Returns: void


setColumnGap

NameDescription
setColumnGap (long)The value of horizontal spacing between columns of a matrix; If the ColumnGapRule is set to 3 (“Exactly”), then the unit is interpreted as twips (1/20th of a point) If the ColumnGapRule is set to 4 (“Multiple”), then the unit is interpreted as number of 0.5 em increments. In other cases ignored. Default: 0

Returns: void


setColumnGapRule

NameDescription
setColumnGapRule (int)The type of horizontal spacing between columns of a matrix; Horizontal spacing units can be ems or points (stored as twips). Default: SingleSpacingGap (0)

Returns: void


setColumnsAlignment

NameDescription
setColumnsAlignment (int, long, int)Set the horizontal alignment of the specified columns

Parameters:

NameTypeDescription
columnIndexintZero-based index of the first column to set alignment
columnsCountlongThe number of columns to specify the alignment
valintNew value of horizontal alignment of specified column

Returns: void


setHidePlaceholders

NameDescription
setHidePlaceholders (boolean)Hide the placeholders for empty matrix elements Default: false

Returns: void


setMinColumnWidth

NameDescription
setMinColumnWidth (long)Minimum column width in twips (1/20th of a point) The gap spacing (also referred to as “Column Gap” or “Gap Width”) is added to the MinColumnWidth to determine the total Matrix Column Spacing (distance between the same edges of different columns). Default: 0.

Returns: void


setRowGap

NameDescription
setRowGap (long)The value of vertical spacing between rows of a matrix; If the RowGapRule is set to 3 (“Exactly”), then the unit is interpreted as twips (1/20th of a point) If the RowGapRule is set to 4 (“Multiple”), then the unit is interpreted as half-lines. Default: 0

Returns: void


setRowGapRule

NameDescription
setRowGapRule (int)The type of vertical spacing between rows of a matrix; Vertical spacing units can be lines or points (stored as twips). Default: SingleSpacingGap (0)

Returns: void


set_Item

NameDescription
set_Item (int, int, MathLeftSubSuperscriptElement)Element of matrix

Parameters:

NameTypeDescription
rowintThe zero-based index of the row to get item
columnintThe zero-based index of the column to get item

Returns: void


set_Item

NameDescription
set_Item (int, int, MathLimit)Element of matrix

Parameters:

NameTypeDescription
rowintThe zero-based index of the row to get item
columnintThe zero-based index of the column to get item

Returns: void


set_Item

NameDescription
set_Item (int, int, MathMatrix)Element of matrix

Parameters:

NameTypeDescription
rowintThe zero-based index of the row to get item
columnintThe zero-based index of the column to get item

Returns: void


set_Item

NameDescription
set_Item (int, int, MathBlock)Element of matrix

Parameters:

NameTypeDescription
rowintThe zero-based index of the row to get item
columnintThe zero-based index of the column to get item

Returns: void


set_Item

NameDescription
set_Item (int, int, MathRadical)Element of matrix

Parameters:

NameTypeDescription
rowintThe zero-based index of the row to get item
columnintThe zero-based index of the column to get item

Returns: void


set_Item

NameDescription
set_Item (int, int, MathArray)Element of matrix

Parameters:

NameTypeDescription
rowintThe zero-based index of the row to get item
columnintThe zero-based index of the column to get item

Returns: void


set_Item

NameDescription
set_Item (int, int, MathDelimiter)Element of matrix

Parameters:

NameTypeDescription
rowintThe zero-based index of the row to get item
columnintThe zero-based index of the column to get item

Returns: void


set_Item

NameDescription
set_Item (int, int, MathNaryOperator)Element of matrix

Parameters:

NameTypeDescription
rowintThe zero-based index of the row to get item
columnintThe zero-based index of the column to get item

Returns: void


set_Item

NameDescription
set_Item (int, int, MathAccent)Element of matrix

Parameters:

NameTypeDescription
rowintThe zero-based index of the row to get item
columnintThe zero-based index of the column to get item

Returns: void


set_Item

NameDescription
set_Item (int, int, MathGroupingCharacter)Element of matrix

Parameters:

NameTypeDescription
rowintThe zero-based index of the row to get item
columnintThe zero-based index of the column to get item

Returns: void


set_Item

NameDescription
set_Item (int, int, MathBorderBox)Element of matrix

Parameters:

NameTypeDescription
rowintThe zero-based index of the row to get item
columnintThe zero-based index of the column to get item

Returns: void


set_Item

NameDescription
set_Item (int, int, MathBar)Element of matrix

Parameters:

NameTypeDescription
rowintThe zero-based index of the row to get item
columnintThe zero-based index of the column to get item

Returns: void


set_Item

NameDescription
set_Item (int, int, MathSuperscriptElement)Element of matrix

Parameters:

NameTypeDescription
rowintThe zero-based index of the row to get item
columnintThe zero-based index of the column to get item

Returns: void


set_Item

NameDescription
set_Item (int, int, MathSubscriptElement)Element of matrix

Parameters:

NameTypeDescription
rowintThe zero-based index of the row to get item
columnintThe zero-based index of the column to get item

Returns: void


set_Item

NameDescription
set_Item (int, int, MathFunction)Element of matrix

Parameters:

NameTypeDescription
rowintThe zero-based index of the row to get item
columnintThe zero-based index of the column to get item

Returns: void


set_Item

NameDescription
set_Item (int, int, MathematicalText)Element of matrix

Parameters:

NameTypeDescription
rowintThe zero-based index of the row to get item
columnintThe zero-based index of the column to get item

Returns: void


set_Item

NameDescription
set_Item (int, int, MathFraction)Element of matrix

Parameters:

NameTypeDescription
rowintThe zero-based index of the row to get item
columnintThe zero-based index of the column to get item

Returns: void


set_Item

NameDescription
set_Item (int, int, BaseScript)Element of matrix

Parameters:

NameTypeDescription
rowintThe zero-based index of the row to get item
columnintThe zero-based index of the column to get item

Returns: void


set_Item

NameDescription
set_Item (int, int, MathBox)Element of matrix

Parameters:

NameTypeDescription
rowintThe zero-based index of the row to get item
columnintThe zero-based index of the column to get item

Returns: void


set_Item

NameDescription
set_Item (int, int, MathElementBase)Element of matrix

Parameters:

NameTypeDescription
rowintThe zero-based index of the row to get item
columnintThe zero-based index of the column to get item

Returns: void


set_Item

NameDescription
set_Item (int, int, MathRightSubSuperscriptElement)Element of matrix

Parameters:

NameTypeDescription
rowintThe zero-based index of the row to get item
columnintThe zero-based index of the column to get item

Returns: void