PDFium Delphi Component Docs

NextReadingUnitOfKind Fonction

Module: PDFium
Trouve le TPdfReadingUnit suivant ou précédent dont Kind correspond au TPdfContentFragmentKind demandé

Syntax

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

Parameters

UnitsTPdfReadingUnits
CurrentIndexInteger
KindTPdfContentFragmentKind
GoForwardBoolean

Return Value

Integer

Description

Les unités de lecture gardent les titres et les textes alternatifs de figures entiers, découpent les paragraphes aux limites de phrase, préservent les points décimaux et laissent le curseur de lecture sous forme d’index de tableau côté appelant

Utilisez Rects avec TPdfView.SetReadingHighlight et Language pour coordonner la surbrillance visuelle avec une voix TTS

Remarks

Example

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

See Also

ReadableContent, SetReadingHighlight