PDFium Delphi Component Docs

ObjectBounds property

Component: TPdfView  ·  Unit: PDFium
TPdfView counterpart to TPdf.ObjectBounds

Syntax

property ObjectBounds[Index: Integer]: TPdfRectangle;

Description

Provides the TPdfView counterpart to TPdf.ObjectBounds; the control passes the call through to its underlying Pdf instance and refreshes the view if the document changes

The same semantic notes from TPdf.ObjectBounds apply here; the only difference is that you work through the visual control rather than the model object

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

Remarks

Example

if PdfView1.Active then
  Memo1.Lines.Add('ObjectBounds = ' + FloatToStr(PdfView1.ObjectBounds[0].Right));

See Also

ObjectBounds, Pdf