Upravit

Sdílet prostřednictvím


OMath Interface

Definition

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

public interface class OMath
[System.Runtime.InteropServices.Guid("E4442A83-F623-459C-8E95-8BFB44DCF23A")]
public interface OMath
type OMath = interface
Public Interface OMath
Attributes

Remarks

Use the Add(Range) method of the OMaths collection to create an equation and add it to a document, selection, or range. The following example creates an equation and uses the Microsoft.Office.Interop.Word.OMaths.Buildup method to convert the equation to professional format.

Properties

AlignPoint

Returns or sets an Integer that represents the character position of the alignment point in the equation. Read/write.

Application

Returns an _Application object that represents the Microsoft Word application.

ArgIndex

Returns an Integer that represents the argument index of this component relative to the containing math object. Read-only.

ArgSize

Returns or sets an Integer that represents the script size of an argument, for example, text, script, or script-script. Read/write.

Breaks

Returns an OMathBreaks collection that represents the line breaks in an equation. Read-only.

Creator

Returns a 32-bit Integer that indicates the application in which the add-in was created. Read-only.

Functions

Returns an OMathFunctions collection that represents the functions contained within an equation. Read-only.

Justification

Returns or sets a WdOMathJc that represents the justification for an equation. Read/write.

NestingLevel

Returns an Integer that represents the nesting level for an OMath object. Read-only.

Parent

Returns the parent object of the specified OMath object.

ParentArg

Returns an OMath object that represents the parent, or containing, argument. Read-only.

ParentCol

Returns a OMathMatCol object that represents the parent column in a matrix. Read-only.

ParentFunction

Returns an OMathFunction object that represents the parent, or containing, function. Read-only.

ParentOMath

Returns a OMath object that represents the parent element. Read-only.

ParentRow

Returns a OMathMatRow object that represents the parent row in a matrix. Read-only.

Range

Returns a Range object that represents the portion of a document that is contained in the specified object. Read-only.

Type

Returns or sets a WdOMathType constant that represents whether an equation is displayed inline with the text around it or displayed on its own line. Read/write.

Methods

BuildUp()

Converts an equation to a professional format.

ConvertToLiteralText()

Converts an equation to literal text.

ConvertToMathText()

Converts an equation to math text.

ConvertToNormalText()

Converts an equation to normal text.

Linearize()

Converts an equation into a linear format.

Remove()

Removes an equation from the collection of equations in a document, range, or selection.

Applies to