PDFium Delphi Component Docs

NextReadingUnitOfKind Fonction

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

Syntaxe

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

Paramètres

UnitsTPdfReadingUnits
CurrentIndexInteger
KindTPdfContentFragmentKind
GoForwardBoolean

Valeur de retour

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

Remarques

Exemple

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

Voir aussi

ReadableContent, SetReadingHighlight