PDFium Component Docs

NextReadingUnitOfKind-funktio

Unit: PDFium
Etsii seuraavan tai edellisen TPdfReadingUnitin, jonka Kind vastaa pyydettyä TPdfContentFragmentKind-arvoa

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