PdfRenderedRectangle Class

Represents a single occurrence of an element on a PDF page. Carries the axis-aligned bounding rectangle, the rotated four-corner outline and the page dimensions

Definition

Namespace: HiQPdf.Next
Assembly: HiQPdf.Next (in HiQPdf.Next.dll) Version: 18.9.2
C#
public class PdfRenderedRectangle
Inheritance
Object    PdfRenderedRectangle

Constructors

PdfRenderedRectangleInitializes a new instance of the PdfRenderedRectangle class

Properties

Bounds The axis-aligned bounding rectangle of the rendered area, expressed in points and relative to the top-left corner of the page or template. For rotated elements this is the smallest axis-aligned rectangle that fully contains the rendered shape
PageHeight The height of the page or template on which the element was rendered, in points
PageNumber The number of the PDF page on which the element was rendered (1-based index). For elements rendered inside a template this value is 0
PageWidth The width of the page or template on which the element was rendered, in points
QuadPoints The four corners of the rendered area as they appear after any rotation has been applied, expressed in points and relative to the top-left corner of the page or template. The corners follow the original orientation of the element: TopLeft is the corner that was top-left before rotation, and so on. Use this property to draw connecting lines or annotations that follow the rotation of the element instead of an axis-aligned bounding box
VisibleBounds The intersection of Bounds with the page rectangle, in points and relative to the top-left corner of the page or template. Equals Bounds when the element fits entirely inside the page and is null when the element is fully outside the page area

Methods

Equals
(Inherited from Object)
Finalize
(Inherited from Object)
GetHashCode
(Inherited from Object)
GetType
(Inherited from Object)
MemberwiseClone
(Inherited from Object)
ToString
(Inherited from Object)

See Also