PdfRect represents a rectangle defined by the coordinates of its lower-left and upper-right corners. An instance of the PdfRect object is returned by several properties and methods such as PdfPage's MediaBox or PdfFont's GetTextExtent. Properties Methods Bottom Height Left Right Top Width Set SetRect Properties Bottom As Single (Read/Write) Returns or specifies the Y coordinate of the rectangle's lower-left corner. Height As Single (Read/Write) Returns or specifies rectangle's height which is computed as an absolute difference between its Top and Bottom properties. Setting this property has a side effect of modifying the Top property. Left As Single (Read/Write) Returns or specifies the X coordinate of the rectangle's lower-left corner. Right As Single (Read/Write) Returns or specifies the X coordinate of the rectangle's upper-right corner. Top As Single (Read/Write) Returns or specifies the Y coordinate of the rectangle's upper-right corner. Width As Single (Read/Write) Returns or specifies rectangle's width which is computed as an absolute difference between its Right and Left properties. Setting this property has a side effect of modifying the Right property. Methods Sub Set (X As Single, Y As Single, Width As Single, Height As Single ) Sets the coordinates of the lower-left corner of the rectangle to (X, Y) and size to (Width, Height). Sub SetRect (Rect PdfRect) Copies the rectangle's coordinates and size from that of Rect.
Properties Bottom As Single (Read/Write) Returns or specifies the Y coordinate of the rectangle's lower-left corner. Height As Single (Read/Write) Returns or specifies rectangle's height which is computed as an absolute difference between its Top and Bottom properties. Setting this property has a side effect of modifying the Top property. Left As Single (Read/Write) Returns or specifies the X coordinate of the rectangle's lower-left corner. Right As Single (Read/Write) Returns or specifies the X coordinate of the rectangle's upper-right corner. Top As Single (Read/Write) Returns or specifies the Y coordinate of the rectangle's upper-right corner. Width As Single (Read/Write) Returns or specifies rectangle's width which is computed as an absolute difference between its Right and Left properties. Setting this property has a side effect of modifying the Right property. Methods Sub Set (X As Single, Y As Single, Width As Single, Height As Single ) Sets the coordinates of the lower-left corner of the rectangle to (X, Y) and size to (Width, Height). Sub SetRect (Rect PdfRect) Copies the rectangle's coordinates and size from that of Rect.
Bottom As Single (Read/Write) Returns or specifies the Y coordinate of the rectangle's lower-left corner. Height As Single (Read/Write) Returns or specifies rectangle's height which is computed as an absolute difference between its Top and Bottom properties. Setting this property has a side effect of modifying the Top property. Left As Single (Read/Write) Returns or specifies the X coordinate of the rectangle's lower-left corner. Right As Single (Read/Write) Returns or specifies the X coordinate of the rectangle's upper-right corner. Top As Single (Read/Write) Returns or specifies the Y coordinate of the rectangle's upper-right corner. Width As Single (Read/Write) Returns or specifies rectangle's width which is computed as an absolute difference between its Right and Left properties. Setting this property has a side effect of modifying the Right property.
Returns or specifies the Y coordinate of the rectangle's lower-left corner.
Returns or specifies rectangle's height which is computed as an absolute difference between its Top and Bottom properties. Setting this property has a side effect of modifying the Top property.
Returns or specifies the X coordinate of the rectangle's lower-left corner.
Returns or specifies the X coordinate of the rectangle's upper-right corner.
Returns or specifies the Y coordinate of the rectangle's upper-right corner.
Returns or specifies rectangle's width which is computed as an absolute difference between its Right and Left properties. Setting this property has a side effect of modifying the Right property.
Sub Set (X As Single, Y As Single, Width As Single, Height As Single ) Sets the coordinates of the lower-left corner of the rectangle to (X, Y) and size to (Width, Height). Sub SetRect (Rect PdfRect) Copies the rectangle's coordinates and size from that of Rect.
Sets the coordinates of the lower-left corner of the rectangle to (X, Y) and size to (Width, Height).
Copies the rectangle's coordinates and size from that of Rect.