PDFium Component Docs

ClearSelection procedure

この API エントリでは識別子、シグネチャ、コードブロック、PDF 用語を元の表記のまま保持します。
コンポーネント: TPdfView  ·  ユニット: PDFium
Clears the current text selection and invalidates the view.

構文

procedure ClearSelection;

説明

Drops any active selection, resets the anchor / cursor endpoints, and invalidates the viewer so the next paint draws a clean page. Fires OnSelectionChange前の選択が空でなかった場合にちょうど 1 回発生します。クリアするものがない場合は冪等です (イベントも invalidation もありません)

選択を無効にするすべての状態変更で、ビューアーにより自動的に呼び出されます:SetPdf, SetPageNumber, SetActive(False), and DisplayMode transitions.

備考

PdfView1.ClearSelection;

関連項目

HasSelection, SelectAll, OnSelectionChange