Class OMathArgs (Word VBA)

The class OMathArgs represents a collection of arguments. To use a OMathArgs class variable it first needs to be instantiated, for example

Add

Inserts an argument into an equation with variable number of arguments (OMathDelim and OMathEqArray objects) and returns an OMath object.

Add (BeforeArg)

BeforeArg: An existing argument before which to add the new argument.


Dim omas As OMathArgs: Set omas =  
Dim omh As OMath
Set omh = omas.Add()

Count

Returns the number of items in the OMathArgs collection.


Dim omas As OMathArgs: Set omas =  
Dim lngCount As Long
lngCount = omas.Count

Item

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

Item (Index)

Index: Specifies the ordinal position of the object within the collection.


Dim omas As OMathArgs: Set omas =  
Dim omhOMathArg As OMath
Set omhOMathArg = omas(Index:=1)