Represents a PDF rectangle value, that is internally an array with 4 real values.
Inheritance Hierarchy
PdfEdit.PdfPdfItem
PdfEdit.PdfPdfRectangle
Namespace: PdfEdit.Pdf
Assembly: PdfPrintingNet (in PdfPrintingNet.dll) Version: 5.1.1.0 (5.1.1.0)
Syntax
The PdfRectangle type exposes the following members.
Constructors
Name | Description | |
---|---|---|
PdfRectangle |
Initializes a new instance of the PdfRectangle class.
| |
PdfRectangle(XRect) |
Initializes a new instance of the PdfRectangle class with the specified XRect.
| |
PdfRectangle(PointF, PointF) |
Initializes a new instance of the PdfRectangle class with two points specifying
two diagonally opposite corners.
| |
PdfRectangle(PointF, SizeF) |
Initializes a new instance of the PdfRectangle class with the specified location and size.
| |
PdfRectangle(XPoint, XPoint) |
Initializes a new instance of the PdfRectangle class with two points specifying
two diagonally opposite corners.
| |
PdfRectangle(XPoint, XSize) |
Initializes a new instance of the PdfRectangle class with the specified location and size.
|
Methods
Name | Description | |
---|---|---|
Clone |
Clones this instance.
| |
Contains(PointF) |
Determines if the specified point is contained within this PdfRectangle.
| |
Contains(RectangleF) |
Determines if the rectangular region represented by rect is entirely contained within this PdfRectangle.
| |
Contains(PdfRectangle) |
Determines if the rectangular region represented by rect is entirely contained within this PdfRectangle.
| |
Contains(XPoint) |
Determines if the specified point is contained within this PdfRectangle.
| |
Contains(XRect) |
Determines if the rectangular region represented by rect is entirely contained within this PdfRectangle.
| |
Contains(Double, Double) |
Determines if the specified point is contained within this PdfRectangle.
| |
Equals |
Tests whether the specified object is a PdfRectangle and has equal coordinates.
(Overrides ObjectEquals(Object).) | |
GetHashCode |
Serves as a hash function for a particular type.
(Overrides ObjectGetHashCode.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
ToString |
Returns the rectangle as a string in the form «[x1 y1 x2 y2]».
(Overrides ObjectToString.) | |
ToXRect |
Returns the rectangle as an XRect object.
|
Operators
Name | Description | |
---|---|---|
Equality |
Tests whether two structures have equal coordinates.
| |
Inequality |
Tests whether two structures differ in one or more coordinates.
|
Fields
Name | Description | |
---|---|---|
Empty |
Represents an empty PdfRectangle.
|
Properties
Name | Description | |
---|---|---|
Height |
Gets Y2 - Y1.
| |
IsEmpty |
Tests whether all coordinate are zero.
| |
Location |
Gets or sets the coordinates of the first point of this PdfRectangle.
| |
Size |
Gets or sets the size of this PdfRectangle.
| |
Width |
Gets X2 - X1.
| |
X1 |
Gets or sets the x-coordinate of the first corner of this PdfRectangle.
| |
X2 |
Gets or sets the x-coordinate of the second corner of this PdfRectangle.
| |
Y1 |
Gets or sets the y-coordinate of the first corner of this PdfRectangle.
| |
Y2 |
Gets or sets the y-coordinate of the second corner of this PdfRectangle.
|
See Also