Class OMathMatCol (Word VBA)

The class OMathMatCol represents a matrix column. The OMathMatCol is a member of the OMathMatCols collection. To use a OMathMatCol class variable it first needs to be instantiated, for example

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 return 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