Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

IdxRichEditDocument.GetText Method

Returns all text within the document as an unformatted text string.

#Declaration

Delphi
function GetText: string; overload;

#Returns

Type
string

#Remarks

Call this function to obtain a plain text representation of the opened document. The unformatted text string returned by the GetText function is affected by the Rich Edit control’s Options.Export.PlainText property value.

The GetText function is a getter of the Text property.

If you need to obtain only a portion of the opened document as an unformatted text string, call the GetText function exposed by the IdxRichEditSubDocument interface.

See Also