PDFium Component Docs

HasSelection функція

Component: TPdfView  ·  Unit: PDFium
Описує функцію TPdfView.HasSelection у PDFiumPas і пояснює, коли використовувати цей член API

Syntax

function HasSelection: Boolean;

Description

Returns True if the viewer's internal selection model contains any non-empty range, otherwise False. Cheap (no PDFium round-trip) so it's safe to call from OnSelectionChange handlers, from a popup's OnPopup to enable / disable a Copy item, or from a paint loop.

Remarks

Example

CopyMenuItem.Enabled := PdfView1.HasSelection;

See Also

SelectionCharCount, SelectedText, SelectAll, ClearSelection, OnSelectionChange