text property
Range.text property
Gets the text of the range.
get text(): string
Remarks
The returned string includes all control and special characters as described in ControlChar.
Examples
Shows how to get the text contents of all the nodes that a range covers.
let doc = new aw.Document();
let builder = new aw.DocumentBuilder(doc);
builder.write("Hello world!");
expect(doc.range.text.trim()).toEqual("Hello world!");
See Also
- module Aspose.Words
- class Range