[]
        
(Showing Draft Content)

GrapeCity.Documents.Word.MathMLConverter

Class MathMLConverter

Namespace
GrapeCity.Documents.Word
Assembly
GcDocs.Word.dll

Used to convert GcWord content to MathML, or append MathML content to GcWord Office Math objects. When converting multiple objects, creating and reusing the same instance of this class improves performance.

public class MathMLConverter
Inheritance
object
MathMLConverter
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()

Constructors

MathMLConverter()

Creates a new instance of the MathMLConverter class.

public MathMLConverter()

Methods

FromMathML(XmlReader, OMath)

Adds MathML content to a OMath.

public ContentObject[] FromMathML(XmlReader mathML, OMath to)

Parameters

mathML System.Xml.XmlReader

The source System.Xml.XmlReader containing the MathML content to convert.

to OMath

The target OMath where to add the converted content.

Returns

ContentObject[]

The array of created ContentObjects.

FromMathML(XmlReader, OMathElement)

Adds MathML content to a OMathElement.

public ContentObject[] FromMathML(XmlReader mathML, OMathElement to)

Parameters

mathML System.Xml.XmlReader

The source System.Xml.XmlReader containing the MathML content to convert.

to OMathElement

The target OMathElement where to add the converted content.

Returns

ContentObject[]

The array of created ContentObjects.

FromMathML(XmlReader, OMathParagraph)

Adds MathML content to a OMathParagraph.

public OMath FromMathML(XmlReader mathML, OMathParagraph to)

Parameters

mathML System.Xml.XmlReader

The source System.Xml.XmlReader containing the MathML content to convert.

to OMathParagraph

The target OMathParagraph where to add the converted content.

Returns

OMath

The newly created OMath that contains the added content.

FromMathML(XmlReader, RangeBase, InsertLocation)

Adds MathML content to a RangeBase.

public ContentObject[] FromMathML(XmlReader mathML, RangeBase range, InsertLocation location = InsertLocation.End)

Parameters

mathML System.Xml.XmlReader

The source System.Xml.XmlReader containing the MathML content to convert.

range RangeBase

The target RangeBase where to add the converted content.

location InsertLocation

The target InsertLocation for the insertion.

Returns

ContentObject[]

The array of created ContentObjects.

ToMathML(ContentObject, XmlWriter)

Converts a ContentObject to MathML.

public void ToMathML(ContentObject content, XmlWriter result)

Parameters

content ContentObject

The source ContentObject to convert.

result System.Xml.XmlWriter

The target System.Xml.XmlWriter where to write the MathML content.

ToMathML(RangeBase, XmlWriter)

Converts a RangeBase to MathML.

public bool ToMathML(RangeBase range, XmlWriter result)

Parameters

range RangeBase

The source RangeBase to convert.

result System.Xml.XmlWriter

The target System.Xml.XmlWriter where to write the MathML content.

Returns

bool

true if the range is converter successfully; otherwise false