Stores a set of four floating-point numbers that represent the location and size of a rectangle.
Namespace: PdfEdit.Drawing
Assembly: PdfPrintingNet (in PdfPrintingNet.dll) Version: 5.2.1.0 (5.2.1.0)
Syntax
The XRect type exposes the following members.
Constructors
Name | Description | |
---|---|---|
XRect(RectangleF) |
Initializes a new instance of the XRect class.
| |
XRect(XSize) |
Initializes a new instance of the XRect class.
| |
XRect(PointF, SizeF) |
Initializes a new instance of the XRect class.
| |
XRect(XPoint, XPoint) |
Initializes a new instance of the XRect class.
| |
XRect(XPoint, XSize) |
Initializes a new instance of the XRect class.
| |
XRect(XPoint, XVector) |
Initializes a new instance of the XRect class.
| |
XRect(Double, Double, Double, Double) |
Initializes a new instance of the XRect class.
|
Methods
Name | Description | |
---|---|---|
Contains(XPoint) |
Indicates whether the rectangle contains the specified point.
| |
Contains(XRect) |
Indicates whether the rectangle contains the specified rectangle.
| |
Contains(Double, Double) |
Indicates whether the rectangle contains the specified point.
| |
Equals(Object) |
Determines whether this instance and the specified object are equal.
(Overrides ValueTypeEquals(Object).) | |
Equals(XRect) |
Determines whether this instance and the specified rect are equal.
| |
Equals(XRect, XRect) |
Determines whether the two rectangles are equal.
| |
FromLTRB |
Creates a rectangle from for straight lines.
| |
GetHashCode |
Returns the hash code for this instance.
(Overrides ValueTypeGetHashCode.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
Inflate(XSize) |
Expands the rectangle by using the specified Size, in all directions.
| |
Inflate(Double, Double) |
Expands or shrinks the rectangle by using the specified width and height amounts, in all directions.
| |
Inflate(XRect, XSize) |
Returns the rectangle that results from expanding the specified rectangle by the specified Size, in all directions.
| |
Inflate(XRect, Double, Double) |
Creates a rectangle that results from expanding or shrinking the specified rectangle by the specified width and height amounts, in all directions.
| |
Intersect(XRect) |
Sets current rectangle to the intersection of the current rectangle and the specified rectangle.
| |
Intersect(XRect, XRect) |
Returns the intersection of two rectangles.
| |
IntersectsWith |
Indicates whether the specified rectangle intersects with the current rectangle.
| |
Offset(XVector) |
Moves a rectangle by the specified amount.
| |
Offset(Double, Double) |
Moves a rectangle by the specified amount.
| |
Offset(XRect, XVector) |
Returns a rectangle that is offset from the specified rectangle by using the specified vector.
| |
Offset(XRect, Double, Double) |
Returns a rectangle that is offset from the specified rectangle by using specified horizontal and vertical amounts.
| |
Parse |
Parses the rectangle from a string.
| |
Scale |
Multiplies the size of the current rectangle by the specified x and y values.
| |
ToRectangleF |
Converts this instance to a System.Drawing.RectangleF.
| |
ToString |
Converts this XRect to a human readable string.
(Overrides ValueTypeToString.) | |
ToString(IFormatProvider) |
Converts this XRect to a human readable string.
| |
Transform(XMatrix) |
Transforms the rectangle by applying the specified matrix.
| |
Transform(XRect, XMatrix) |
Returns the rectangle that results from applying the specified matrix to the specified rectangle.
| |
Union(XPoint) |
Sets current rectangle to the union of the current rectangle and the specified point.
| |
Union(XRect) |
Sets current rectangle to the union of the current rectangle and the specified rectangle.
| |
Union(XRect, XPoint) |
Returns the intersection of a rectangle and a point.
| |
Union(XRect, XRect) |
Returns the union of two rectangles.
|
Operators
Name | Description | |
---|---|---|
Addition |
Translates the rectangle by adding the specified point.
| |
Equality |
Determines whether the two rectangles are equal.
| |
(Rectangle to XRect) |
Performs an implicit conversion from a System.Drawing.Rectangle to an XRect.
| |
(RectangleF to XRect) |
Performs an implicit conversion from a System.Drawing.RectangleF to an XRect.
| |
Inequality |
Determines whether the two rectangles are not equal.
| |
Subtraction |
Translates the rectangle by subtracting the specified point.
|
Properties
Name | Description | |
---|---|---|
Bottom |
Gets the y-axis value of the bottom side of the rectangle.
| |
BottomLeft |
Gets the position of the bottom-left corner of the rectangle.
| |
BottomRight |
Gets the position of the bottom-right corner of the rectangle.
| |
Center |
Gets the center of the rectangle.
| |
Empty |
Gets the empty rectangle.
| |
Height |
Gets or sets the height of the rectangle.
| |
IsEmpty |
Gets a value indicating whether this instance is empty.
| |
Left |
Gets the x-axis value of the left side of the rectangle.
| |
Location |
Gets or sets the location of the rectangle.
| |
Right |
Gets the x-axis value of the right side of the rectangle.
| |
Size |
Gets or sets the size of the rectangle.
| |
Top |
Gets the y-axis value of the top side of the rectangle.
| |
TopLeft |
Gets the position of the top-left corner of the rectangle.
| |
TopRight |
Gets the position of the top-right corner of the rectangle.
| |
Width |
Gets or sets the width of the rectangle.
| |
X |
Gets or sets the X value of the rectangle.
| |
Y |
Gets or sets the Y value of the rectangle.
|
See Also