PDFiumVCL Docs

SelectionColor property

Component: TPdfView  ·  Unit: PDFium
Fill color for the user-drag text selection overlay.

Syntax

property SelectionColor: TColor;

Description

Color drawn over the selected text rectangles. Defaults to clHighlight (the Windows system selection color, conventionally blue) so the experience matches every other Windows text-editing surface.

Independent from HighlightColor, which colors search-result highlights (default clYellow). The two overlays use different colors and different paint passes — an active search highlight and a live drag-selection can be visible on the same page simultaneously without color conflict.

Remarks

Example

begin
  PdfView1.SelectionColor := clSkyBlue;
  PdfView1.HighlightColor := clYellow;
end;

See Also

AllowUserTextSelection, OnSelectionChange, HasSelection