PDFium Delphi Component Docs

SelectionCharCount İşlev

Component: TPdfView  ·  Unit: PDFium
Şunu döndürür: total number of characters currently selected.

Syntax

function SelectionCharCount: Integer;

Description

Tüm sayfa başına seçim aralıklarındaki karakter sayılarının toplamı. Tek sayfa seçim modunda bu yalnızca tek aralığın uzunluğudur; spread sayfalar arası seçimde iki aralığın toplamıdır

Counts PDF character positions, not text-string code points after extraction — ligatures and generated characters (e.g. an auto-inserted CR/LF between visual lines) count as their underlying PDF character slots, matching the indices returned by CharacterIndexAtPos.

Remarks

Example

StatusBar1.SimpleText :=
  Format('Selected: %d characters', [PdfView1.SelectionCharCount]);

See Also

HasSelection, SelectedText, OnSelectionChange