Class OMathMatRows (Word VBA)

The class OMathMatRows represents a collection of matrix rows. Use the OMathMatRow object to access individual members of the collection. To use a OMathMatRows class variable it first needs to be instantiated, for example

Add

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

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()

Count

Returns the number of items in the OMathMatRows collection.


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

Item

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

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)