Gets the text of the range.
Namespace:
Aspose.Words
Assembly:
Aspose.Words (in Aspose.Words.dll) Version: 20.3
Syntaxpublic string Text { get; }
Public ReadOnly Property Text As String
Get
public:
property String^ Text {
String^ get ();
}
member Text : string with get
Property Value
Type:
String
RemarksThe returned string includes all control and special characters as described in ControlChar.
ExamplesShows how to get plain, unformatted text of a range.
Document doc = new Document(MyDir + "Document.docx");
string text = doc.Range.Text;
See Also