PDFium Delphi Component Docs

PaintSelection method

Component: TPdfView  ·  Unit: PDFium
TPdfView wrapper that passes through to TPdfView.PaintSelection

Syntax

procedure PaintSelection(SelectionStart, SelectionEnd: Integer; Mask: TColor);

Description

Mirrors TPdfView.PaintSelection The TPdfView component passes the call through to its underlying Pdf instance and refreshes the view if the call changes the document

All semantic notes from TPdfView.PaintSelection apply here as well; the only difference is that you address the operation through the visual control rather than the model object

When TPdfView is bound to an external TPdf (assigning PdfView1.Pdf := Pdf1), reading this member returns the same data as Pdf1.PaintSelection without addressing the model component separately

Remarks

Example

if PdfView1.Active then
  PdfView1.PaintSelection(0, 10, clYellow);

See Also

PaintSelection, Pdf