PDFium Component Docs

NextReadingUnitOfKind funkcija

Modulis: PDFium
Randa kitą arba ankstesnį TPdfReadingUnit, kurio Kind atitinka prašomą TPdfContentFragmentKind

Syntax

function NextReadingUnitOfKind(const Units: TPdfReadingUnits; CurrentIndex: Integer; Kind: TPdfContentFragmentKind; GoForward: Boolean): Integer;

Parameters

UnitsTPdfReadingUnits
CurrentIndexInteger
KindTPdfContentFragmentKind
GoForwardBoolean

Return Value

Integer

Description

Reading units keep headings and figure alternate text whole, split paragraph text at sentence boundaries, preserve decimal points, and leave the reading cursor as a caller-owned array index

Use Rects with TPdfView.SetReadingHighlight and Language to coordinate visual highlighting with a TTS voice

Remarks

Example

Index := NextReadingUnitOfKind(Units, Index, cfHeading, True);

See Also

ReadableContent, SetReadingHighlight