Class OMathBox (Word VBA)
The class OMathBox represents an invisible box around an equation or part of an equation to which you can apply properties that affect the mathematical or formatting properties, such as line breaks. To use a OMathBox class variable it first needs to be instantiated, for example
Diff
Returns or sets a Boolean that represents whether the box acts as the mathematical differential, in which case the box receives the appropriate horizontal spacing for a differential.
Dim omb As OMathBox: Set omb =
omb.Diff = True
E
Returns an OMath object that represents the base of the specified equation object.
Dim omb As OMathBox: Set omb =
Dim omhE As OMath
Set omhE = omb.E
NoBreak
Returns or sets a Boolean that represents whether breaks are allowed inside the box object.
Dim omb As OMathBox: Set omb =
omb.NoBreak = True
OpEmu
Returns or sets a Boolean that represents that the box and its contents behave as a single operator and inherit the properties of an operator.
When the OpEmu property is True, the character can serve as a point for a line break and can be aligned to other operators. Operator emulators are often used when one or more glyphs combine to form an operator, such as ==.
Dim omb As OMathBox: Set omb =
omb.OpEmu = True