PDFium Delphi Component Docs

OnFormSelectionRect olayı

Component: TPdf  ·  Unit: PDFium
Form katmanının bildirdiği her seçim dikdörtgeni için tetiklenir

Syntax

property OnFormSelectionRect: TPdfFormSelectionRectEvent read FOnFormSelectionRect write FOnFormSelectionRect;

Description

OnFormSelectionRect, form katmanının odaktaki alan için bildirdiği her ayrı seçim dikdörtgeni için bir kez tetiklenir. İşleyici; birden başlayan bir PageNumber ve sayfa uzayı Bounds taşıyan bir TPdfFormSelectionRect alır

Art arda gelen kopyalar bastırılır; bildirilen her dikdörtgen ayrıca FormSelectionRects özelliğinin açığa çıkardığı listeye eklenir

Remarks

    • İşleyici imzası: procedure(Sender: TObject; const SelectionRect: TPdfFormSelectionRect) of object
    • Anında katman çizimi için canlı olayı, toplu yeniden çizimler için FormSelectionRects özelliğini kullanın
    • Odak başka bir alana geçtiğinde ClearFormSelectionRects çağırın

Example

procedure TMain.Pdf1FormSelectionRect(Sender: TObject; const SelectionRect: TPdfFormSelectionRect);
begin
  HighlightSelection(SelectionRect.PageNumber, SelectionRect.Bounds);
end;

See Also