SmartTag constructor

SmartTag(doc)

Initializes a new instance of the SmartTag class.

SmartTag(doc: Aspose.Words.DocumentBase)
ParameterTypeDescription
docDocumentBaseThe 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.parentNode is null. To insert a node into the document, use the CompositeNode.insertAfter() or CompositeNode.insertBefore() methods on the parent node.

See Also