OMathFunctions.Add Method
Inserts a new structure, such as a fraction, into an equation at the specified position and returns an OMathFunction object that represents the structure.
Namespace: Microsoft.Office.Interop.Word
Assembly: Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)
Syntax
'Declaration
Function Add ( _
Range As Range, _
Type As WdOMathFunctionType, _
ByRef NumArgs As Object, _
ByRef NumCols As Object _
) As OMathFunction
'Usage
Dim instance As OMathFunctions
Dim Range As Range
Dim Type As WdOMathFunctionType
Dim NumArgs As Object
Dim NumCols As Object
Dim returnValue As OMathFunction
returnValue = instance.Add(Range, Type, _
NumArgs, NumCols)
OMathFunction Add(
Range Range,
WdOMathFunctionType Type,
ref Object NumArgs,
ref Object NumCols
)
Parameters
- Range
Type: Microsoft.Office.Interop.Word.Range
Required Range The place at which to insrt an equation.
- Type
Type: Microsoft.Office.Interop.Word.WdOMathFunctionType
Required WdOMathFunctionTypeThe type of equation to insert.
- NumArgs
Type: System.Object%
Optional Object The number of arguments in the equation.
- NumCols
Type: System.Object%
Optional Object The number of columns in the equation.
Return Value
Type: Microsoft.Office.Interop.Word.OMathFunction
OMathFunction