PDFium Component Docs

SetReadingHighlight метод

Component: TPdfView  ·  Unit: PDFium
Керує накладкою підсвічування читання TPdfView, яку використовує синхронізоване відтворення тексту в мовлення

Syntax

procedure SetReadingHighlight(const Rects: TPdfRectangles; PageNumber: Integer);

Parameters

RectsTPdfRectangles. Page-coordinate rectangles to paint
PageNumberInteger. One-based page that owns the rectangles

Return Value

Reading highlight rectangles are supplied in page coordinates and painted over the requested page. This is intended for the current paragraph, heading, table cell, or line being spoken

Clear the highlight when playback stops or when the application moves to another fragment. ReadingHighlightColor controls the overlay colour

Description

Remarks

if Length(Content.Fragments) > 0 then
  PdfView1.SetReadingHighlight(Content.Fragments[0].LineRects, Content.Page);

Example

SetReadingHighlight, ClearReadingHighlight, ReadingHighlightColor, ReadableContent