API Reference
WordEquation
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
- 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
- Property WordFooter.Equations
- Property WordHeader.Equations
- Property WordHeaderFooter.Equations
- Property WordParagraph.Equation
- Property WordSection.Equations
Constructors
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
- Parent Word document.
- paragraph DocumentFormat.OpenXml.Wordprocessing.Paragraph
- Paragraph that contains the equation.
- officeMath DocumentFormat.OpenXml.Math.OfficeMath
- 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
- Parent Word document.
- paragraph DocumentFormat.OpenXml.Wordprocessing.Paragraph
- Paragraph that contains the equation.
- mathParagraph DocumentFormat.OpenXml.Math.Paragraph
- 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
- Parent Word document.
- paragraph DocumentFormat.OpenXml.Wordprocessing.Paragraph
- Paragraph that contains the equation.
- officeMath DocumentFormat.OpenXml.Math.OfficeMath
- Math equation element.
- mathParagraph DocumentFormat.OpenXml.Math.Paragraph
- Paragraph element representing the equation.
Methods
public Void Remove() #VoidRemoves the equation from the document by deleting the underlying Open XML elements.
Inherited Methods
public override Boolean Equals(Object obj) #BooleanParameters
- obj Object