Class OMathMatCol (Word VBA)

The class OMathMatCol represents a matrix column. The OMathMatCol is a member of the OMathMatCols collection.

For Each

Here is an example of processing the OMathMatCol items in a collection.

Dim omm As OMathMat: Set omm = 
Dim ommCol As OMathMatCol
For Each ommCol In omm.Cols
	With ommCol
		
	End With
Next ommCol

Align

Returns or sets a WdOMathHorizAlignType constant that represents the horizontal alignment for arguments in a matrix column.

Possible Values are wdOMathHorizAlignCenter - Centered, wdOMathHorizAlignLeft - Left alignment, wdOMathHorizAlignRight - Right alignment.
Dim omm As OMathMatCol: Set omm =  
omm.Align = wdOMathHorizAlignCenter

Args

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

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

ColIndex

Returns a Long that represents the ordinal position of a column within the collection of columns in a matrix.

Dim omm As OMathMatCol: Set omm =  
Dim lngColIndex As Long
lngColIndex = omm.ColIndex

Delete

Deletes the specified matrix column.

Dim omm As OMathMatCol: Set omm =  
omm.Delete

Parent

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

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

OMathMatCols.Add

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

Syntax : expression.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()

OMathMatCols.Count

Returns the number of items in the OMathMatCols collection.

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

OMathMatCols.Item

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

OMathMatCols.Parent

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

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