PDFium Component Docs

SelectWordSpan method

Component: TPdfView  ·  Unit: PDFium
Memilih rentang halaman-sama dari record TPdfWordBox sebagai satu seleksi teks TPdfView

Syntax

function SelectWordSpan(const Words: TPdfWordBoxes; StartIndex, EndIndex: Integer): Boolean;

Parameters

WordsTPdfWordBoxes
StartIndexInteger
EndIndexInteger

Return Value

Boolean

Description

SelectWordSpan menjepit indeks kata yang diminta, memerlukan kedua titik-akhir pada halaman yang sama, lalu memilih rentang karakter gabungan

Gunakan dengan PageWordBoxes ketika kata atau frasa yang saat ini diucapkan memerlukan seleksi teks penampil nyata

Remarks

Example

var Words: TPdfWordBoxes;
begin
  Words := PdfView1.PageWordBoxes;
  PdfView1.SelectWordSpan(Words, 0, 4);
end;

See Also

PageWordBoxes, SelectWordBox, SelectTextRange, WordBoxIndexAtCharIndex