Class OMathMatRow (Word VBA)

The class OMathMatRow represents a matrix row. The OMathMatRow is a member of the OMathMatRows collection.

Args

Returns an OMathArgs object that represents the arguments in a matrix row.

Dim omm As OMathMatRow: Set omm =  
Dim omasArgs As OMathArgs
Set omasArgs = omm.Args

Delete

Deletes the specified matrix row.

Dim omm As OMathMatRow: Set omm =  
omm.Delete

Parent

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

Dim omm As OMathMatRow: Set omm =  
Dim objParent As Object
Set objParent = omm.Parent

RowIndex

Returns or sets a Long that represents the ordinal position of a matrix row within the collection of matrix rows.

Dim omm As OMathMatRow: Set omm =  
Dim lngRowIndex As Long
lngRowIndex = omm.RowIndex

OMathMatRows.Add

Creates an equation row and adds it to a matrix and returns an OMathMatRow object.

Syntax : expression.Add (BeforeRow)

BeforeRow: An existing row in the matrix before which to place the new row.

Dim omms As OMathMatRows: Set omms =  
Dim omm As OMathMatRow
Set omm = omms.Add()

OMathMatRows.Count

Returns the number of items in the OMathMatRows collection.

Dim omms As OMathMatRows: Set omms =  
Dim lngCount As Long
lngCount = omms.Count

OMathMatRows.Item

Returns an OMathMatRow 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 omms As OMathMatRows: Set omms =  
Dim omm As OMathMatRow
Set omm = omms(Index:=1)

OMathMatRows.Parent

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

Dim omms As OMathMatRows: Set omms =  
Dim objParent As Object
Set objParent = omms.Parent