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

TdxPDFViewerSelection.AsText Method

Returns the PDF document selection as a Unicode text string.

#Declaration

Delphi
function AsText: string;

#Returns

Type
string

#Remarks

Call this function to obtain the currently selected text as a text string. Multiple selected text rows are returned as a single text string delimited with line break characters (i.e., #13#10 in Delphi or \n in C++Builder).

The AsText function returns an empty string if one of the following conditions is met:

See Also