Represents an Office Math object such as function, equation, matrix or alike. Can contain child elements including runs of mathematical text, bookmarks, comments, other OfficeMath instances and some other nodes.
In this version of Aspose.Words, OfficeMath nodes do not provide public methods and properties to create or modify a OfficeMath object. In this version you are not able to instantiate Math nodes or modify existing except deleting them.
OfficeMath can only be a child of Paragraph.
Shows how to set office math display formatting.
#include <Aspose.Words.Cpp/Math/OfficeMath.h>
Public Member Functions | |
bool | Accept (SharedPtr< DocumentVisitor > visitor) override |
Accepts a visitor. More... | |
OfficeMathDisplayType | get_DisplayType () |
Gets/sets Office Math display format type which represents whether an equation is displayed inline with the text or displayed on its own line. More... | |
SharedPtr< Encoding > | get_EquationXmlEncoding () const |
Gets/sets an encoding that was used to encode equation XML, if this office math object is read from equation XML. We use the encoding on saving a document to write in same encoding that it was read. More... | |
OfficeMathJustification | get_Justification () |
Gets/sets Office Math justification. More... | |
MathObjectType | get_MathObjectType () const |
Gets type MathObjectType of this Office Math object. More... | |
NodeType | get_NodeType () const override |
Returns NodeType.OfficeMath. More... | |
SharedPtr< Paragraph > | get_ParentParagraph () |
Retrieves the parent Paragraph of this node. More... | |
SharedPtr< OfficeMathRenderer > | GetMathRenderer () |
Creates and returns an object that can be used to render this equation into an image. More... | |
virtual const TypeInfo & | GetType () const override |
virtual bool | Is (const TypeInfo &target) const override |
void | RemoveMoveRevisions () override |
void | set_DisplayType (OfficeMathDisplayType value) |
Setter for get_DisplayType. More... | |
void | set_EquationXmlEncoding (SharedPtr< Encoding > value) |
Setter for get_EquationXmlEncoding. More... | |
void | set_Justification (OfficeMathJustification value) |
Setter for get_Justification. More... | |
![]() | |
SharedPtr< Node > | AppendChild (SharedPtr< Node > newChild) |
Adds the specified node to the end of the list of child nodes for this node. More... | |
SharedPtr< NodeCollection > | get_ChildNodes () |
Gets all immediate child nodes of this node. More... | |
SharedPtr< CompositeNode > | get_Container () override |
int32_t | get_Count () |
Gets the number of immediate children of this node. More... | |
SharedPtr< Node > | get_FirstChild () const |
Gets the first child of the node. More... | |
bool | get_HasChildNodes () |
Returns true if this node has any child nodes. More... | |
bool | get_IsComposite () override |
Returns true as this node can have child nodes. More... | |
SharedPtr< Node > | get_LastChild () const |
Gets the last child of the node. More... | |
SharedPtr< Node > | GetChild (NodeType nodeType, int32_t index, bool isDeep) |
Returns an Nth child node that matches the specified type. More... | |
SharedPtr< NodeCollection > | GetChildNodes (NodeType nodeType, bool isDeep) |
Returns a live collection of child nodes that match the specified type. More... | |
SharedPtr< Node > | GetCurrentNode () override |
SharedPtr< IEnumerator< SharedPtr< Node > > > | GetEnumerator () override |
Provides support for the for each style iteration over the child nodes of this node. More... | |
SharedPtr< Node > | GetNextMatchingNode (SharedPtr< Node > curNode) override |
String | GetText () override |
Gets the text of this node and of all its children. More... | |
int32_t | IndexOf (SharedPtr< Node > child) |
Returns the index of the specified child node in the child node array. More... | |
SharedPtr< Node > | InsertAfter (SharedPtr< Node > newChild, SharedPtr< Node > refChild) |
Inserts the specified node immediately after the specified reference node. More... | |
SharedPtr< Node > | InsertBefore (SharedPtr< Node > newChild, SharedPtr< Node > refChild) |
Inserts the specified node immediately before the specified reference node. More... | |
SharedPtr< Node > | PrependChild (SharedPtr< Node > newChild) |
Adds the specified node to the beginning of the list of child nodes for this node. More... | |
void | RemoveAllChildren () |
Removes all the child nodes of the current node. More... | |
SharedPtr< Node > | RemoveChild (SharedPtr< Node > oldChild) |
Removes the specified child node. More... | |
void | RemoveSmartTags () |
Removes all SmartTag descendant nodes of the current node. More... | |
SharedPtr< NodeList > | SelectNodes (String xpath) |
Selects a list of nodes matching the XPath expression. More... | |
SharedPtr< Node > | SelectSingleNode (String xpath) |
Selects the first Node that matches the XPath expression. More... | |
![]() | |
SharedPtr< Node > | Clone (bool isCloneChildren) |
Creates a duplicate of the node. More... | |
int32_t | get_CustomNodeId () const |
Specifies custom node identifier. More... | |
virtual SharedPtr< DocumentBase > | get_Document () const |
Gets the document to which this node belongs. More... | |
SharedPtr< Node > | get_NextSibling () |
Gets the node immediately following this node. More... | |
SharedPtr< CompositeNode > | get_ParentNode () |
Gets the immediate parent of this node. More... | |
SharedPtr< Node > | get_PreviousSibling () |
Gets the node immediately preceding this node. More... | |
SharedPtr< Range > | get_Range () |
Returns a Range object that represents the portion of a document that is contained in this node. More... | |
SharedPtr< CompositeNode > | GetAncestor (NodeType ancestorType) |
Gets the first ancestor of the specified NodeType. More... | |
template<typename T > | |
T | GetAncestorOf () |
SharedPtr< Node > | NextPreOrder (SharedPtr< Node > rootNode) |
Gets next node according to the pre-order tree traversal algorithm. More... | |
SharedPtr< Node > | PreviousPreOrder (SharedPtr< Node > rootNode) |
Gets the previous node according to the pre-order tree traversal algorithm. More... | |
void | Remove () |
Removes itself from the parent. More... | |
void | set_CustomNodeId (int32_t value) |
Setter for get_CustomNodeId. More... | |
String | ToString (SaveFormat saveFormat) |
Exports the content of the node into a string in the specified format. More... | |
String | ToString (SharedPtr< SaveOptions > saveOptions) |
Exports the content of the node into a string using the specified save options. More... | |
Static Public Member Functions | |
static const TypeInfo & | Type () |
![]() | |
static const TypeInfo & | Type () |
![]() | |
static String | NodeTypeToString (NodeType nodeType) |
A utility method that converts a node type enum value into a user friendly string. More... | |
static const TypeInfo & | Type () |
|
overridevirtual |
Accepts a visitor.
Enumerates over this node and all of its children. Each node calls a corresponding method on DocumentVisitor.
For more info see the Visitor design pattern.
visitor | The visitor that will visit the nodes. |
Shows how to print the node structure of every office math node in a document.
Implements Aspose::Words::Node.
Aspose::Words::Math::OfficeMathDisplayType Aspose::Words::Math::OfficeMath::get_DisplayType | ( | ) |
Gets/sets Office Math display format type which represents whether an equation is displayed inline with the text or displayed on its own line.
Display format type has effect for top level Office Math only.
Returned display format type is always Inline for nested Office Math.
Shows how to set office math display formatting.
System::SharedPtr<System::Text::Encoding> Aspose::Words::Math::OfficeMath::get_EquationXmlEncoding | ( | ) | const |
Gets/sets an encoding that was used to encode equation XML, if this office math object is read from equation XML. We use the encoding on saving a document to write in same encoding that it was read.
Shows how to set office math display formatting.
Aspose::Words::Math::OfficeMathJustification Aspose::Words::Math::OfficeMath::get_Justification | ( | ) |
Gets/sets Office Math justification.
Justification cannot be set to the Office Math with display format type Inline.
Inline justification cannot be set to the Office Math with display format type Display.
Corresponding DisplayType has to be set before setting Office Math justification.
Shows how to set office math display formatting.
Aspose::Words::Math::MathObjectType Aspose::Words::Math::OfficeMath::get_MathObjectType | ( | ) | const |
Gets type MathObjectType of this Office Math object.
Shows how to print the node structure of every office math node in a document.
|
overridevirtual |
Returns NodeType.OfficeMath.
Shows how to set office math display formatting.
Implements Aspose::Words::Node.
System::SharedPtr<Aspose::Words::Paragraph> Aspose::Words::Math::OfficeMath::get_ParentParagraph | ( | ) |
Retrieves the parent Paragraph of this node.
Shows how to set office math display formatting.
System::SharedPtr<Aspose::Words::Rendering::OfficeMathRenderer> Aspose::Words::Math::OfficeMath::GetMathRenderer | ( | ) |
Creates and returns an object that can be used to render this equation into an image.
This method just invokes the OfficeMathRenderer constructor and passes this object as a parameter.
Shows how to render an Office Math object into an image file in the local file system.
|
overridevirtual |
Reimplemented from Aspose::Words::CompositeNode.
|
overridevirtual |
Reimplemented from Aspose::Words::CompositeNode.
|
override |
void Aspose::Words::Math::OfficeMath::set_DisplayType | ( | Aspose::Words::Math::OfficeMathDisplayType | value | ) |
Setter for Aspose::Words::Math::OfficeMath::get_DisplayType.
void Aspose::Words::Math::OfficeMath::set_EquationXmlEncoding | ( | System::SharedPtr< System::Text::Encoding > | value | ) |
void Aspose::Words::Math::OfficeMath::set_Justification | ( | Aspose::Words::Math::OfficeMathJustification | value | ) |
|
static |