OMaths.Add(Range) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates an equation, from the text equation contained within the specified range, and returns a Range object that contains the new equation.
public:
Microsoft::Office::Interop::Word::Range ^ Add(Microsoft::Office::Interop::Word::Range ^ Range);
public Microsoft.Office.Interop.Word.Range Add (Microsoft.Office.Interop.Word.Range Range);
abstract member Add : Microsoft.Office.Interop.Word.Range -> Microsoft.Office.Interop.Word.Range
Public Function Add (Range As Range) As Range
Parameters
- Range
- Range
Specifies a range that contains a text equation.
Returns
Range
Examples
The following example inserts an equation into the document at the cursor or replacing the selected text.