API Reference
WordEquation
Encapsulates an OMML equation or a legacy Word EQ field.
Inheritance
- WordElement
- WordEquation
Usage
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by
- Property WordDocument.Equations
- Method WordEquation.SetExpression
- Property WordFooter.Equations
- Property WordHeader.Equations
- Property WordHeaderFooter.Equations
- Property WordParagraph.Equation
- Property WordSection.Equations
Methods
public WordEquation SetExpression(OfficeMathExpression expression) #WordEquationReplaces this equation with an editable OMML representation of a shared expression.
Parameters
- expression OfficeIMO.Drawing.OfficeMathExpression
public OfficeDrawing ToDrawing(OfficeMathRenderOptions options = null) #OfficeDrawingRenders this equation through the shared dependency-free math renderer.
Parameters
- options OfficeIMO.Drawing.OfficeMathRenderOptions = null
public String ToEquationFieldInstruction() #StringProjects OMML to a legacy Word EQ instruction, or returns the existing EQ instruction.
public OfficeMathExpression ToExpression() #OfficeMathExpressionProjects this equation into the reusable OfficeIMO math expression tree.
public String ToLatex() #StringProjects the equation to LaTeX. Field-backed equations fall back to their cached display text.
public String ToMathMl() #StringProjects the equation to MathML. Field-backed equations use a safe mtext fallback.
Inherited Methods
public override Boolean Equals(Object obj) #BooleanParameters
- obj Object
Properties
public WordEquationRepresentation Representation { get; } #Gets the native equation representation.
public String Text { get; set; } #Gets or sets deterministic visible equation text. Setting OMML text replaces the structured expression with one math text run; setting an EQ field updates its cached display result.
public String Omml { get; } #Gets raw OMML when the equation is backed by DOCX math markup; otherwise null.
public String FieldInstruction { get; } #Gets the raw EQ field instruction when the equation is field-backed; otherwise null.