Docs de PDFiumPas

ClearSelection procedure

Esta entrada API conserva identificadores, firmas, bloques de código y términos PDF en su forma original.
Componente: TPdfView  ·  Unidad: PDFium
Clears the current text selection and invalidates the view.

Sintaxis

procedure ClearSelection;

Descripción

Drops any active selection, resets the anchor / cursor endpoints, and invalidates the viewer so the next paint draws a clean page. Fires OnSelectionChange exactamente una vez cuando la selección anterior no estaba vacía; es idempotente cuando no hay nada que borrar (sin evento, sin invalidación)

Lo llama automáticamente el visor en cada cambio de estado que invalidaría la selección: SetPdf, SetPageNumber, SetActive(False), and DisplayMode transitions.

Notas

Ejemplo

PdfView1.ClearSelection;

Véase también

HasSelection, SelectAll, OnSelectionChange