PDFium Component Docs

ClearSelection procedure

Component: TPdfView  ·  Unit: PDFium
Briše trenutni odabir teksta i poništava prikaz.

Syntax

procedure ClearSelection;

Description

Odbacuje bilo koji aktivni odabir, resetira sidro/krajnje točke kursora i poništava preglednik tako da sljedeće iscrtavanje crta čistu stranicu. Fires OnSelectionChange exactly once when the previous selection was non-empty; idempotent when there is nothing to clear (no event, no invalidation).

Called automatically by the viewer on every state change that would invalidate the selection: SetPdf, SetPageNumber, SetActive(False), and DisplayMode transitions.

Remarks

Example

PdfView1.ClearSelection;

See Also

HasSelection, SelectAll, OnSelectionChange