PDFium Component Docs

מתודת SetReadingHighlight

Component: TPdfView  ·  Unit: PDFium
Controls the TPdfView reading-highlight overlay used by synchronized text-to-speech playback

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

מלבני הדגשת קריאה מסופקים בקואורדינטות הדף ונצבעים מעל הדף המבוקש. זה מיועד לפסקה, כותרת, תא טבלה או שורה שנקראים כעת

נקו את ההדגשה כאשר ההשמעה נעצרת או כאשר היישום עובר למקטע אחר. ReadingHighlightColor שולט בצבע שכבת-העל

Description

Remarks

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

Example

SetReadingHighlight, ClearReadingHighlight, ReadingHighlightColor, ReadableContent