Class OMathMatCols (Word VBA)

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

Add

Creates an equation column and adds it to a matrix and returns an OMathMatCol object.

Add (BeforeCol)

BeforeCol: An existing column in the matrix before which to place the new column.


Dim omms As OMathMatCols: Set omms =  
Dim omm As OMathMatCol
Set omm = omms.Add()

Count

Returns the number of items in the OMathMatCols collection.


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

Item

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