PdfRectangleElement Class

Defines a rectangle to be drawn in the PDF document. Coordinates are relative to the top-left corner of the page or template

Definition

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

Constructors

PdfRectangleElement(PdfRectangleF) Initializes a new instance of the PdfRectangleElement class from a floating-point rectangle
PdfRectangleElement(Single, Single, Single, Single) Initializes a new instance of the PdfRectangleElement class with the specified position and dimensions

Properties

Accessibility Accessibility metadata used when the host PdfDocument is tagged. The default structure type for a rectangle is Artifact, marking it as decorative graphic excluded from the structure tree. To make the rectangle semantic, set Accessibility.StructureType to a real role such as Figure and provide AlternateText
Border The stroke style for the rectangle border, including width, dash pattern, line cap and corner join style
BorderColor The border color of the rectangle. When null the rectangle is only filled
BorderOpacity The opacity of the rectangle border in the range 0..1. The default value is 1 which produces a fully opaque border
FillColor The fill color of the rectangle. When null the rectangle is only stroked
FillOpacity The opacity of the rectangle fill in the range 0..1. The default value is 1 which produces a fully opaque fill
Height The height of the rectangle in points
RotationDegrees The rotation angle in degrees applied to the rectangle. Positive values rotate counter-clockwise. The default value is 0 which produces no rotation
RotationPivot The pivot point used when rotating this rectangle. The pivot determines which point of the rectangle bounding box remains fixed during rotation. The default value is TopLeft
Width The width of the rectangle in points
X The X position from the top-left corner of the page in points
Y The Y position from the top-left corner of the page in points

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