PDFium Delphi Component Docs

FormSelectionRects 屬性

元件: TPdf  ·  單元: PDFium
列出表單層針對焦點欄位回報的選取矩形

語法

property FormSelectionRects: TPdfFormSelectionRects read GetFormSelectionRects;

說明

FormSelectionRects 會傳回自上次清除以來表單層回報的 TPdfFormSelectionRect 累積陣列;每個項目都帶有自 1 起算的 PageNumber 與頁面空間的 Bounds

連續重複的矩形會被抑制,因此陣列中每個不同的選取矩形只有一個項目

備註

範例

for R in Pdf1.FormSelectionRects do
  DrawFocusRing(R.PageNumber, R.Bounds);

另請參閱

OnFormSelectionRect, ClearFormSelectionRects, FormHostCallbacks