PDFium Delphi Component Docs

SelectionCharCount İşlev

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

Sözdizimi

function SelectionCharCount: Integer;

Açıklama

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 seçili her sayfa aralığını kapsar

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

Notlar

Örnek

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

Ayrıca bkz.

HasSelection, SelectedText, OnSelectionChange