RangeText Property

Gets the text of the range.

Namespace:  Aspose.Words
Assembly:  Aspose.Words (in Aspose.Words.dll) Version: 20.3
Syntax
public string Text { get; }

Property Value

Type: String
Remarks

The returned string includes all control and special characters as described in ControlChar.

Examples
Shows how to get plain, unformatted text of a range.
Document doc = new Document(MyDir + "Document.docx");
string text = doc.Range.Text;
See Also