Class OMathEqArray (Word VBA)

The class OMathEqArray represents a mathematical equation array object, consisting of one or more equations that can be vertically justified as a unit respect to surrounding text on the line. To use a OMathEqArray class variable it first needs to be instantiated, for example

Align

Returns or sets a WdOMathVertAlignType that represents the type of vertical alignment for an equation array with respect to the text that surrounds the array. 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 arr As OMathEqArray: Set arr =  
arr.Align = wdOMathVertAlignBottom

E

Returns an OMathArgs object that represents the list of arguments for the specified equation object.


Dim arr As OMathEqArray: Set arr =  
Dim omasE As OMathArgs
Set omasE = arr.E

MaxDist

Returns or sets a Boolean that represents that the equations in an equation array are distributed equally within the margins of its container, such as a column, cell, or page width.

The container for an equation array may be the margins of a page, the margins of a table cell, or another container in which the equation may exist.


Dim arr As OMathEqArray: Set arr =  
arr.MaxDist = True

ObjDist

Returns or sets a Boolean that represents whether the equations in an equation array are spaced to the maximum width of the equation array.


Dim arr As OMathEqArray: Set arr =  
arr.ObjDist = True

RowSpacing

Returns or sets a Long that represents the spacing between the rows in an equation array.


Dim arr As OMathEqArray: Set arr =  
arr.RowSpacing =

RowSpacingRule

Returns or sets a WdOMathSpacingRule that represents the rule that defines spacing in an equation array. 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 arr As OMathEqArray: Set arr =  
arr.RowSpacingRule = wdOMathSpacing1pt5