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.Select(TRect,Boolean) Method

Selects the content located within the specified area.

#Declaration

Delphi
procedure Select(const ARect: TRect; AMakeVisible: Boolean = False); overload;

#Parameters

Name Type
ARect TRect
AMakeVisible Boolean

#Remarks

Call this procedure to select the content located within a document view area passed as the ARect parameter. The actual effect of calling the Select function depends on what content of the PDF document is located within the specified area:

  • If the ARect area contains only text, all the text within the area is selected;

  • If the specified area contains an image, the image is selected. Note that only a single image can be selected in the displayed PDF document at one time;

  • If the specified area contains both the text and an image, only the text is selected;

  • If no content is located within the specified area, calling the Select procedure has no effect.

The optional AMakeVisible parameter allows you to specify whether the Select procedure should scroll the document to make the resulting selection visible.

For more details on content selection management, refer to the How to Select and Copy the PDF Document’s Content topic.

See Also