Skip to main content

IdxRichEditDocument.GetText Method

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

Declaration

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