OfficeIMO

API Reference

Class

WordEquation

Namespace OfficeIMO.Word
Assembly OfficeIMO.Word

Encapsulates a mathematical equation contained in a paragraph. Provides access to the underlying Open XML elements so the equation can be removed from the document when required.

Inheritance

Constructors

WordEquation 3 overloads
public WordEquation(WordDocument document, Paragraph paragraph, Paragraph mathParagraph) #

Initializes a new instance of the WordEquation class using the specified document, paragraph, and officeMath equation element.

Parameters

document OfficeIMO.Word.WordDocument requiredposition: 0
Parent Word document.
paragraph DocumentFormat.OpenXml.Wordprocessing.Paragraph requiredposition: 1
Paragraph that contains the equation.
officeMath DocumentFormat.OpenXml.Math.OfficeMath requiredposition: 2
Math equation element.
WordEquation(OfficeIMO.Word.WordDocument document, DocumentFormat.OpenXml.Wordprocessing.Paragraph paragraph, DocumentFormat.OpenXml.Math.Paragraph mathParagraph) #

Initializes a new instance of the WordEquation class using the specified document, paragraph, and mathParagraph paragraph element.

Parameters

document OfficeIMO.Word.WordDocument required
Parent Word document.
paragraph DocumentFormat.OpenXml.Wordprocessing.Paragraph required
Paragraph that contains the equation.
mathParagraph DocumentFormat.OpenXml.Math.Paragraph required
Paragraph element representing the equation.
public WordEquation(WordDocument document, Paragraph paragraph, OfficeMath officeMath, Paragraph mathParagraph) #

Initializes a new instance of the WordEquation class using both math equation elements: officeMath and mathParagraph.

Parameters

document OfficeIMO.Word.WordDocument requiredposition: 0
Parent Word document.
paragraph DocumentFormat.OpenXml.Wordprocessing.Paragraph requiredposition: 1
Paragraph that contains the equation.
officeMath DocumentFormat.OpenXml.Math.OfficeMath requiredposition: 2
Math equation element.
mathParagraph DocumentFormat.OpenXml.Math.Paragraph requiredposition: 3
Paragraph element representing the equation.

Methods

public Void Remove() #
Returns: Void

Removes the equation from the document by deleting the underlying Open XML elements.