API Reference

Class

WordEquation

Namespace OfficeIMO.Word
Assembly OfficeIMO.Word

Encapsulates an OMML equation or a legacy Word EQ field.

Inheritance

Usage

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Methods

public Void Remove() #
Returns: Void

Removes the equation and its backing markup from the document.

public WordEquation SetExpression(OfficeMathExpression expression) #
Returns: WordEquation

Replaces this equation with an editable OMML representation of a shared expression.

Parameters

expression OfficeIMO.Drawing.OfficeMathExpression requiredposition: 0
public OfficeDrawing ToDrawing(OfficeMathRenderOptions options = null) #
Returns: OfficeDrawing

Renders this equation through the shared dependency-free math renderer.

Parameters

options OfficeIMO.Drawing.OfficeMathRenderOptions = null optionalposition: 0
public String ToEquationFieldInstruction() #
Returns: String

Projects OMML to a legacy Word EQ instruction, or returns the existing EQ instruction.

public OfficeMathExpression ToExpression() #
Returns: OfficeMathExpression

Projects this equation into the reusable OfficeIMO math expression tree.

public String ToLatex() #
Returns: String

Projects the equation to LaTeX. Field-backed equations fall back to their cached display text.

public String ToMathMl() #
Returns: String

Projects the equation to MathML. Field-backed equations use a safe mtext fallback.

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.