function NextReadingUnitOfKind(const Units: TPdfReadingUnits; CurrentIndex: Integer; Kind: TPdfContentFragmentKind; GoForward: Boolean): Integer;
| Units | TPdfReadingUnits |
| CurrentIndex | Integer |
| Kind | TPdfContentFragmentKind |
| GoForward | Boolean |
IntegerReading 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
Index := NextReadingUnitOfKind(Units, Index, cfHeading, True);