Class OMathFunction (Word VBA)

The class OMathFunction represents a mathematical function or structure that Microsoft Word supports, such as fractions, integrals, sums, and radicals. The OMathFunction object is a member of the OMathFunctions collection.

The classes OMath, OMathLimLow, OMathLimUpp, OMathScrPre and OMathScrSubSup. give access to class OMathFunction

For Each

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


Dim omh As OMath: Set omh = 
Dim omfFunction As OMathFunction
For Each omfFunction In omh.Functions
	With omfFunction
		
	End With
Next omfFunction

Methods

Remove - Removes a function from the collection of functions contained within an equation and returns an OMathFunction object.

Properties

Type (Default member) - Returns a WdOMathFunctionType constant that represents the type of function.

Acc returns an OMathAcc object that represents a base character with a combining accent mark.

Args returns an OMathArgs object that represents the arguments for an equation.

Bar returns an OMathBar object that represents the mathematical overbar for an object.

BorderBox returns an OMathBorderBox object that represents a border drawn around an equation or part of an equation. The BorderBox object can also be used to draw horizontal, vertical, and diagonal strikethrough lines through the BorerBox arguments.

Box returns an OMathBox object that represents an invisible box around an equation or part of an equation to which you can apply properties that affect the mathematical or formatting properties, such as line breaks.

Delim returns an OMathDelim object that represents the delimiter function.

EqArray returns an OMathEqArray object that represents an equation array function.

Frac returns an OMathFrac object that represents a fraction.

Func returns an OMathFunc object that represents a type of mathematical function that consists of a function name, such as sin or cos, and an argument.

GroupChar returns an OMathGroupChar object that represents a horizontal character placed above or below text in an equation, often with the purpose of grouping the text visually.

LimLow returns an OMathLimLow object that represents the lower limit for a function.

LimUpp returns an OMathLimUpp object that represents upper limit function.

Mat returns an OMathMat object that represents a mathematical matrix.

Nary returns an OMathNary object that represents the n-ary operation.

OMath returns an OMath object that represents the equation.

Phantom returns an OMathPhantom object that represents an object used for advanced layout of an equation.

Rad returns an OMathRad object that represents the mathematical radical function.

Range returns a Range object that represents the portion of a document that is contained in the specified object.

ScrPre returns an OMathScrPre object that represents a superscript and subscript to the left of the base.

ScrSub represents an OMathScrSub object that represents the mathematical subscript function.

ScrSubSup returns an OMathScrSubSup object that represents a mathematical subscript-superscript object that consists of a base, a subscript, and a superscript.

ScrSup returns an OMathScrSup object that represents the mathematical superscript function.

OMath - Represents an equation. OMath objects are members of the OMaths collection.

OMathAcc - Represents an equation that has an accent mark above the base.

OMathArgs - Represents a collection of arguments.

OMathBar - Represents an equation with a bar above or below the base.

OMathBorderBox - Represents an invisible box around an equation or part of an equation to which you can assign properties that affect the layout or mathematical formatting of the entire box. For example, a box can serve as an operator emulator with or without an alignment point, serve as a like breakpoint, have an associated argument size (argSz), or be grouped so as not to allow line breaks.

OMathBox - Represents an invisible box around an equation or part of an equation to which you can apply properties that affect the mathematical or formatting properties, such as line breaks.

OMathDelim - Represents a delimiter object, consisting of opening and closing delimiters (such as parentheses, braces, brackets, or vertical bars), and one or more elements contained inside the delimiters.

OMathEqArray - Represents a mathematical equation array object, consisting of one or more equations that can be vertically justified as a unit respect to surrounding text on the line.

OMathFrac - Represents a fraction, consisting of a numerator and denominator separated by a fraction bar. The fraction bar can be horizontal or diagonal, depending on the fraction properties.

OMathFunc - Represents the application of a function or an argument in an equation that consists of a function name, such as sin or cos, and an argument.

OMathGroupChar - Represents a group character object, consisting of a character drawn above or below text, often with the purpose of visually grouping items.

OMathLimLow - Represents the lower limit mathematical construct, consisting of text on the baseline and reduced-size text immediately below it.

OMathLimUpp - Represents the upper limit mathematical construct, consisting of text on the baseline and reduced-size text immediately above it.

OMathMat - Represents an equation matrix.

OMathNary - Represents the mathematical n-ary object, consisting of an n-ary object, a base (or operand), and optional upper limits and lower limits.

OMathPhantom - Represents a phantom object, which has two primary uses: (1) adding the spacing of the phantom base without displaying that base or (2) suppressing part of the glyph from spacing considerations.

OMathRad - Represents the mathematical radical object, consisting of a radical, a base, and an optional degree.

OMathScrPre - Represents an equation that contains a superscript or subscript to the left of the base.

OMathScrSub - Represents an equation with a base that contains a subscript.

OMathScrSubSup - Represents an equation with a base that contains a superscript or subscript.

OMathScrSup - Represents an equation with a base that contains a superscript.

Range - Represents a contiguous area in a document. Each Range object is defined by a starting and ending character position.