SubDocument.GetText(DocumentRange, PlainTextDocumentExporterOptions, TextFragmentOptions) Method
Returns the plain text of the specified document range.
Namespace: DevExpress.XtraRichEdit.API.Native
Assembly: DevExpress.RichEdit.v24.2.Core.dll
NuGet Package: DevExpress.RichEdit.Core
#Declaration
string GetText(
DocumentRange range,
PlainTextDocumentExporterOptions options,
TextFragmentOptions getTextOptions
)
#Parameters
Name | Type | Description |
---|---|---|
range | Document |
A Document |
options | Plain |
A Plain |
get |
Text |
A Text |
#Returns
Type | Description |
---|---|
String | A String value, containing the text of the specified range. |
#Remarks
Use this method to get a plain text representation of any part of the document. This method overload triggers export-related events as described in the following table:
Event | Description |
---|---|
Rich |
Does not occur. |
Rich |
Does not occur. |
Note
If you operate with a selection range, the Get
For an example of use, refer to another SubDocument.GetText method overloads.