PDFium Delphi Component Docs

función NextReadingUnitOfKind

Unidad: PDFium
Busca el siguiente o anterior TPdfReadingUnit cuyo Kind coincide con un TPdfContentFragmentKind solicitado

Sintaxis

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

Parámetros

UnitsTPdfReadingUnits
CurrentIndexInteger
KindTPdfContentFragmentKind
GoForwardBoolean

Valor devuelto

Integer

Descripción

Las unidades de lectura conservan completos los títulos y el texto alternativo de las figuras, dividen el texto del párrafo en los límites de las oraciones, preservan los puntos decimales y dejan el cursor de lectura como un índice de matriz propiedad del llamador

Use Rects con TPdfView.SetReadingHighlight y Language para coordinar el resaltado visual con una voz TTS

Observaciones

Ejemplo

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

Véase también

ReadableContent, SetReadingHighlight