PDFium Component Docs

מתודת SelectWordSpan

Component: TPdfView  ·  Unit: PDFium
בוחר מקטע באותו דף של רשומות TPdfWordBox כבחירת טקסט אחת של TPdfView

Syntax

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

Parameters

WordsTPdfWordBoxes
StartIndexInteger
EndIndexInteger

Return Value

Boolean

Description

SelectWordSpan clamps the requested word indexes, requires both endpoints on the same page, then selects the combined character range

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;
  PdfView1.SelectWordSpan(Words, 0, 4);
end;

See Also

PageWordBoxes, SelectWordBox, SelectTextRange, WordBoxIndexAtCharIndex