Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

WordEquation

OfficeIMO.Word

Namespace
OfficeIMO.Word
Assembly
OfficeIMO.Word
Source revision
0eef6a5756b9 with working tree changes

Encapsulates an OMML equation or a legacy Word EQ field.

Inheritance

Usage

Explore 9 API references to this type

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

Methods

public void Remove() #

Removes the equation and its backing markup from the document.

public WordEquation SetExpression(OfficeMathExpression expression) #

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

Parameters

expression OfficeIMO.Drawing.OfficeMathExpression required
public OfficeDrawing ToDrawing(OfficeMathRenderOptions? options = null) #

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

Parameters

options OfficeIMO.Drawing.OfficeMathRenderOptions? = null optional

Returns

OfficeDrawing
public string ToEquationFieldInstruction() #

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

Returns

string
public OfficeMathExpression ToExpression() #

Projects this equation into the reusable OfficeIMO math expression tree.

Returns

OfficeMathExpression
public string ToLatex() #

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

Returns

string
public string ToMathMl() #

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

Returns

string

Properties

public WordParagraph Paragraph { get; } #

Gets the paragraph handle containing this equation.

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.