PDFium Component Docs

NextReadingUnitOfKind funkcija

Unit: PDFium
Pronalazi sljedeći ili prethodni TPdfReadingUnit čiji Kind odgovara zatraženom TPdfContentFragmentKind

Syntax

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

Parameters

UnitsTPdfReadingUnits
CurrentIndexInteger
KindTPdfContentFragmentKind
GoForwardBoolean

Return Value

Integer

Description

Jedinice čitanja drže naslove i alternativni tekst slika cijelima, dijele tekst odlomka 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