Class OMathBreak (Word VBA)

The class OMathBreak represents individual line breaks in an equation. Each OMathBreak object is a member of the OMathBreaks collection.

AlignAt

Returns or sets a Long that represents the operator in one line, to which Microsoft Word aligns consecutive lines in an equation.

Dim omb As OMathBreak: Set omb =  
omb.AlignAt =

Delete

Deletes the specified equation break.

Dim omb As OMathBreak: Set omb =  
omb.Delete

Parent

Returns an object that represents the parent object of the specified OMathBreak object.

Dim omb As OMathBreak: Set omb =  
Dim objParent As Object
Set objParent = omb.Parent

Range

Returns a Range object that represents the portion of a document that is contained in the specified object.

Dim omb As OMathBreak: Set omb =  
Dim rngRange As Range
Set rngRange = omb.Range

OMathBreaks.Add

Inserts a break into an equation and returns an OMathBreak object that represents the break.

Syntax : expression.Add (Range)

Range: The position at which to insert the break in the equation.

Dim ombs As OMathBreaks: Set ombs =  
Dim omb As OMathBreak
Set omb = ombs.Add(Range:=)

OMathBreaks.Count

Returns the number of items in the OMathBreaks collection.

Dim ombs As OMathBreaks: Set ombs =  
Dim lngCount As Long
lngCount = ombs.Count

OMathBreaks.Item

Returns an OMathBreak object that represents the specified item in the collection.

Syntax : expression.Item (Index)

Index: Specifies the ordinal position of the object within the collection.

Dim ombs As OMathBreaks: Set ombs =  
Dim omb As OMathBreak
Set omb = ombs(Index:=1)

OMathBreaks.Parent

Returns an object that represents the parent object of the specified OMathBreaks object.

Dim ombs As OMathBreaks: Set ombs =  
Dim objParent As Object
Set objParent = ombs.Parent