Run constructor

Run(doc)

Initializes a new instance of the Run class.

Run(doc: Aspose.Words.DocumentBase)
ParameterTypeDescription
docDocumentBaseThe owner document.

Remarks

When Run is created, it belongs to the specified document, but is not yet part of the document and Node.parentNode is null.

To append Run to the document use CompositeNode.insertAfter() or CompositeNode.insertBefore() on the paragraph where you want the run inserted.

Run(doc, text)

Initializes a new instance of the Run class.

Run(doc: Aspose.Words.DocumentBase, text: string)
ParameterTypeDescription
docDocumentBaseThe owner document.
textstringThe text of the run.

Remarks

When Run is created, it belongs to the specified document, but is not yet part of the document and Node.parentNode is null.

To append Run to the document use CompositeNode.insertAfter() or CompositeNode.insertBefore() on the paragraph where you want the run inserted.

See Also