SmartTag constructor
SmartTag(doc)
Initializes a new instance of the SmartTag class.
def __init__(self, doc: aspose.words.DocumentBase):
...
| Parameter | Type | Description |
|---|---|---|
| doc | DocumentBase | The owner document. |
Remarks
When you create a new node, you need to specify a document to which the node belongs. A node cannot exist without a document because it depends on the document-wide structures such as lists and styles. Although a node always belongs to a document, a node might or might not be a part of the document tree.
When a node is created, it belongs to a document, but is not yet part of the document tree and Node.parent_node is null. To insert a node into the document, use the CompositeNode.insert_after() or CompositeNode.insert_before() methods on the parent node.
See Also
- module aspose.words.markup
- class SmartTag