WordEquation
OfficeIMO.Word
Encapsulates an OMML equation or a legacy Word EQ field.
Inheritance
- WordElement
- WordEquation
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.
Returned or exposed by 9
- Method WordDocument.AddEquation
- Property WordDocument.Equations
- Method WordEquation.SetExpression
- Property WordFooter.Equations
- Property WordHeader.Equations
- Property WordHeaderFooter.Equations
- Method WordParagraph.AddEquation
- Property WordParagraph.Equation
- Property WordSection.Equations
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
Returns
WordEquationpublic OfficeDrawing ToDrawing(OfficeMathRenderOptions? options = null) #Renders this equation through the shared dependency-free math renderer.
Parameters
- options OfficeIMO.Drawing.OfficeMathRenderOptions? = null
Returns
OfficeDrawingpublic string ToEquationFieldInstruction() #Projects OMML to a legacy Word EQ instruction, or returns the existing EQ instruction.
Returns
stringpublic OfficeMathExpression ToExpression() #Projects this equation into the reusable OfficeIMO math expression tree.
Returns
OfficeMathExpressionpublic string ToLatex() #Projects the equation to LaTeX. Field-backed equations fall back to their cached display text.
Returns
stringpublic string ToMathMl() #Projects the equation to MathML. Field-backed equations use a safe mtext fallback.
Returns
stringInherited Methods
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.