PDFium Component Docs

metodo SelectWordBox

Componente: TPdfView  ·  Unità: PDFium
Seleziona l’intervallo di testo rappresentato da un TPdfWordBox nella pagina TPdfView corrente

Syntax

function SelectWordBox(const Word: TPdfWordBox): Boolean;

Parameters

WordTPdfWordBox

Return Value

Boolean

Description

SelectWordBox reads Word.Page, Word.StartIndex, and Word.Count, then forwards them to SelectTextRange

Use it with PageWordBoxes when the current spoken word or phrase needs a real viewer text selection

Remarks

Example

var Words: TPdfWordBoxes;
begin
  Words := PdfView1.PageWordBoxes;
  if Length(Words) > 0 then
    PdfView1.SelectWordBox(Words[0]);
end;

See Also

PageWordBoxes, SelectWordSpan, SelectTextRange, SetReadingHighlight