Run constructor
Contents
[
Hide
]Run(doc)
Initializes a new instance of the Run class.
Run(doc: Aspose.Words.DocumentBase)
| Parameter | Type | Description |
|---|---|---|
| doc | DocumentBase | The 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)
| Parameter | Type | Description |
|---|---|---|
| doc | DocumentBase | The owner document. |
| text | string | The 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
- module Aspose.Words
- class Run