Represents a start of ranged structured document tag which accepts multi-sections content. See also StructuredDocumentTagRangeEnd.
Shows how to get the properties of multi-section structured document tags.
#include <Aspose.Words.Cpp/Markup/StructuredDocumentTagRangeStart.h>
Public Member Functions | |
StructuredDocumentTagRangeStart (const SharedPtr< DocumentBase > &doc, SdtType type) | |
Initializes a new instance of the Structured document tag range start class. More... | |
bool | Accept (SharedPtr< DocumentVisitor > visitor) override |
Accepts a visitor. More... | |
SharedPtr< Node > | AppendChild (const SharedPtr< Node > &newChild) |
Adds the specified node to the end of the stdContent range. More... | |
SharedPtr< NodeCollection > | get_ChildNodes () |
Gets all nodes between this range start node and the range end node. More... | |
Color | get_Color () override |
Gets or sets the color of the structured document tag. More... | |
int32_t | get_Id () override |
Specifies a unique read-only persistent numerical Id for this structured document tag. More... | |
bool | get_IsShowingPlaceholderText () override |
Specifies whether the content of this structured document tag shall be interpreted to contain placeholder text (as opposed to regular text contents within the structured document tag). if set to true, this state shall be resumed (showing placeholder text) upon opening this document. More... | |
SharedPtr< Node > | get_LastChild () |
Gets the last child in the stdContent range. More... | |
MarkupLevel | get_Level () const override |
Gets the level at which this structured document tag range start occurs in the document tree. More... | |
bool | get_LockContentControl () override |
When set to true, this property will prohibit a user from deleting this structured document tag. More... | |
bool | get_LockContents () override |
When set to true, this property will prohibit a user from editing the contents of this structured document tag. More... | |
NodeType | get_NodeType () const override |
Gets the type of this node. More... | |
SharedPtr< BuildingBlock > | get_Placeholder () override |
Gets the BuildingBlock containing placeholder text which should be displayed when this structured document tag run contents are empty, the associated mapped XML element is empty as specified via the XmlMapping element or the IsShowingPlaceholderText element is true. More... | |
String | get_PlaceholderName () override |
Gets or sets Name of the BuildingBlock containing placeholder text. BuildingBlock with this name Name has to be present in the GlossaryDocument otherwise InvalidOperationException will occur. More... | |
SharedPtr< StructuredDocumentTagRangeEnd > | get_RangeEnd () |
Specifies end of range if the StructuredDocumentTag is a ranged structured document tag. Otherwise returns null. More... | |
SdtType | get_SdtType () override |
Gets type of this structured document tag. More... | |
String | get_Tag () const override |
Specifies a tag associated with the current structured document tag node. Can not be null. More... | |
String | get_Title () const override |
Specifies the friendly name associated with this structured document tag. Can not be null. More... | |
String | get_WordOpenXML () override |
Gets a string that represents the XML contained within the node in the FlatOpc format. More... | |
SharedPtr< XmlMapping > | get_XmlMapping () override |
Gets an object that represents the mapping of this structured document tag range to XML data in a custom XML part of the current document. More... | |
SharedPtr< NodeCollection > | GetChildNodes (NodeType nodeType, bool isDeep) |
Returns a live collection of child nodes that match the specified types. More... | |
SharedPtr< IEnumerator< SharedPtr< Node > > > | GetEnumerator () override |
Provides support for the for each style iteration over the child nodes of this node. More... | |
virtual const TypeInfo & | GetType () const override |
virtual bool | Is (const TypeInfo &target) const override |
void | RemoveAllChildren () |
Removes all the nodes between this range start node and the range end node. More... | |
void | RemoveSelfOnly () |
Removes this range start and appropriate range end nodes of the structured document tag, but keeps its content inside the document tree. More... | |
void | set_Color (Color value) override |
Setter for get_Color. More... | |
void | set_IsShowingPlaceholderText (bool value) override |
Setter for get_IsShowingPlaceholderText. More... | |
void | set_LockContentControl (bool value) override |
Setter for get_LockContentControl. More... | |
void | set_LockContents (bool value) override |
Setter for get_LockContents. More... | |
void | set_PlaceholderName (String value) override |
Setter for get_PlaceholderName. More... | |
void | set_Tag (String value) override |
Setter for get_Tag. More... | |
void | set_Title (String value) override |
Setter for get_Title. More... | |
void | SetTemplateWeakPtr (uint32_t argument) override |
![]() | |
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... | |
virtual bool | get_IsComposite () |
Returns true if this node can contain other nodes. 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 () |
virtual String | GetText () |
Gets the text of this node and of all its children. More... | |
SharedPtr< Node > | NextPreOrder (const SharedPtr< Node > &rootNode) |
Gets next node according to the pre-order tree traversal algorithm. More... | |
SharedPtr< Node > | PreviousPreOrder (const 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 (const 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 String | NodeTypeToString (NodeType nodeType) |
A utility method that converts a node type enum value into a user friendly string. More... | |
static const TypeInfo & | Type () |
Aspose::Words::Markup::StructuredDocumentTagRangeStart::StructuredDocumentTagRangeStart | ( | const System::SharedPtr< Aspose::Words::DocumentBase > & | doc, |
Aspose::Words::Markup::SdtType | type | ||
) |
Initializes a new instance of the Structured document tag range start class.
The following types of SDT can be created:
doc | The owner document. |
type | Type of SDT node. |
Shows how to create/remove structured document tag and its content.
|
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 use a DocumentVisitor implementation to remove all hidden content from a document.
Implements Aspose::Words::Node.
System::SharedPtr<Aspose::Words::Node> Aspose::Words::Markup::StructuredDocumentTagRangeStart::AppendChild | ( | const System::SharedPtr< Aspose::Words::Node > & | newChild | ) |
Adds the specified node to the end of the stdContent range.
newChild | The node to add. |
System::SharedPtr<Aspose::Words::NodeCollection> Aspose::Words::Markup::StructuredDocumentTagRangeStart::get_ChildNodes | ( | ) |
Gets all nodes between this range start node and the range end node.
Shows how to get child nodes of StructuredDocumentTagRangeStart.
|
overridevirtual |
Gets or sets the color of the structured document tag.
Shows how to get the properties of multi-section structured document tags.
Implements Aspose::Words::Markup::IStructuredDocumentTag.
|
overridevirtual |
Specifies a unique read-only persistent numerical Id for this structured document tag.
Id attribute shall follow these rules:
Shows how to get the properties of multi-section structured document tags.
Implements Aspose::Words::Markup::IStructuredDocumentTag.
|
overridevirtual |
Specifies whether the content of this structured document tag shall be interpreted to contain placeholder text (as opposed to regular text contents within the structured document tag). if set to true, this state shall be resumed (showing placeholder text) upon opening this document.
Shows how to get the properties of multi-section structured document tags.
Implements Aspose::Words::Markup::IStructuredDocumentTag.
System::SharedPtr<Aspose::Words::Node> Aspose::Words::Markup::StructuredDocumentTagRangeStart::get_LastChild | ( | ) |
Gets the last child in the stdContent range.
|
overridevirtual |
Gets the level at which this structured document tag range start occurs in the document tree.
Shows how to get the properties of multi-section structured document tags.
Implements Aspose::Words::Markup::IStructuredDocumentTag.
|
overridevirtual |
When set to true, this property will prohibit a user from deleting this structured document tag.
Shows how to get the properties of multi-section structured document tags.
Implements Aspose::Words::Markup::IStructuredDocumentTag.
|
overridevirtual |
When set to true, this property will prohibit a user from editing the contents of this structured document tag.
Shows how to get the properties of multi-section structured document tags.
Implements Aspose::Words::Markup::IStructuredDocumentTag.
|
overridevirtual |
Gets the type of this node.
Shows how to traverse a composite node's tree of child nodes.
Shows how to remove all child nodes of a specific type from a composite node.
Shows how to use a node's NextSibling property to enumerate through its immediate children.
Implements Aspose::Words::Node.
|
overridevirtual |
Gets the BuildingBlock containing placeholder text which should be displayed when this structured document tag run contents are empty, the associated mapped XML element is empty as specified via the XmlMapping element or the IsShowingPlaceholderText element is true.
Implements Aspose::Words::Markup::IStructuredDocumentTag.
|
overridevirtual |
Gets or sets Name of the BuildingBlock containing placeholder text. BuildingBlock with this name Name has to be present in the GlossaryDocument otherwise InvalidOperationException will occur.
Shows how to get the properties of multi-section structured document tags.
Implements Aspose::Words::Markup::IStructuredDocumentTag.
System::SharedPtr<Aspose::Words::Markup::StructuredDocumentTagRangeEnd> Aspose::Words::Markup::StructuredDocumentTagRangeStart::get_RangeEnd | ( | ) |
Specifies end of range if the StructuredDocumentTag is a ranged structured document tag. Otherwise returns null.
Shows how to get the properties of multi-section structured document tags.
|
overridevirtual |
Gets type of this structured document tag.
Shows how to get the properties of multi-section structured document tags.
Implements Aspose::Words::Markup::IStructuredDocumentTag.
|
overridevirtual |
Specifies a tag associated with the current structured document tag node. Can not be null.
Shows how to get the properties of multi-section structured document tags.
Implements Aspose::Words::Markup::IStructuredDocumentTag.
|
overridevirtual |
Specifies the friendly name associated with this structured document tag. Can not be null.
Shows how to get the properties of multi-section structured document tags.
Implements Aspose::Words::Markup::IStructuredDocumentTag.
|
overridevirtual |
Gets a string that represents the XML contained within the node in the FlatOpc format.
Implements Aspose::Words::Markup::IStructuredDocumentTag.
|
overridevirtual |
Gets an object that represents the mapping of this structured document tag range to XML data in a custom XML part of the current document.
Shows how to set XML mappings for the range start of a structured document tag.
Implements Aspose::Words::Markup::IStructuredDocumentTag.
System::SharedPtr<Aspose::Words::NodeCollection> Aspose::Words::Markup::StructuredDocumentTagRangeStart::GetChildNodes | ( | Aspose::Words::NodeType | nodeType, |
bool | isDeep | ||
) |
Returns a live collection of child nodes that match the specified types.
Shows how to get child nodes of StructuredDocumentTagRangeStart.
|
override |
Provides support for the for each style iteration over the child nodes of this node.
|
overridevirtual |
Implements Aspose::Words::Markup::IStructuredDocumentTag.
|
overridevirtual |
Implements Aspose::Words::Markup::IStructuredDocumentTag.
void Aspose::Words::Markup::StructuredDocumentTagRangeStart::RemoveAllChildren | ( | ) |
Removes all the nodes between this range start node and the range end node.
Shows how to create/remove structured document tag and its content.
void Aspose::Words::Markup::StructuredDocumentTagRangeStart::RemoveSelfOnly | ( | ) |
Removes this range start and appropriate range end nodes of the structured document tag, but keeps its content inside the document tree.
Shows how to create/remove structured document tag and its content.
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
Reimplemented from System::Object.
|
static |
Implements Aspose::Words::Markup::IStructuredDocumentTag.