PDFium Component Docs

SelectWordBox metoda

Component: TPdfView  ·  Unit: PDFium
Vybere rozsah textu reprezentovaný jedním TPdfWordBox na aktuální stránce TPdfView

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