THPDFViewerHighlight Record

Stores a single page-anchored highlight rectangle and its colour in the viewer model

Declaration

THPDFViewerHighlight= record
  PageIndex: Integer;
  PageRect: THPDFRectangle;
  Color: TColor;
end;

Unit

HPDFViewerModel

Fields

FieldPurpose
PageIndexZero-based index of the page to which the highlight is anchored
PageRectRectangle in PDF user space; AddHighlightRegion normalises it and clamps it to the page MediaBox before storing it
ColorTColor used when drawing the highlight; clYellow by default

Usage notes

Related APIs