function NextReadingUnitOfKind(const Units: TPdfReadingUnits; CurrentIndex: Integer; Kind: TPdfContentFragmentKind; GoForward: Boolean): Integer;
| Units | TPdfReadingUnits |
| CurrentIndex | Integer |
| Kind | TPdfContentFragmentKind |
| GoForward | Boolean |
Integer閱讀單元會將標題與圖片替代文字保持完整,在句子邊界切分段落文字,保留小數點,並將閱讀游標保留為呼叫端持有的陣列索引
搭配 TPdfView.SetReadingHighlight 使用 Rects,並以 Language 協調視覺突顯與 TTS 語音
Index := NextReadingUnitOfKind(Units, Index, cfHeading, True);