 |
RectangleF Structure |
Represents a rectangle defined by a single-precision floating-point location
(top-left corner) and size (width and height), used throughout the SelectPdf public API.
Inheritance HierarchySystemObject
SystemValueType
SelectPdf.Universal.DrawingRectangleF
Namespace: SelectPdf.Universal.DrawingAssembly: SelectPdf.HtmlToPdf.Universal (in SelectPdf.HtmlToPdf.Universal.dll) Version: 26.4
Syntaxpublic struct RectangleF : IEquatable<RectangleF>
Public Structure RectangleF
Implements IEquatable(Of RectangleF)
The RectangleF type exposes the following members.
Constructors
Properties| | Name | Description |
|---|
 | Bottom | Gets the Y coordinate of the bottom edge. |
 | Height | The height of the rectangle. |
 | IsEmpty | True if Width and Height are both zero. |
 | Left | Gets the X coordinate of the left edge. |
 | Location | Gets or sets the top-left corner of the rectangle. |
 | Right | Gets the X coordinate of the right edge. |
 | Top | Gets the Y coordinate of the top edge. |
 | Width | The width of the rectangle. |
 | X | The X coordinate of the top-left corner. |
 | Y | The Y coordinate of the top-left corner. |
Top
Methods| | Name | Description |
|---|
 | Contains(PointF) | Tests whether the specified point is contained within this rectangle. |
 | Contains(Single, Single) | Tests whether the specified point is contained within this rectangle. |
 | Equals(Object) | Indicates whether this rectangle and the specified object have the same value. (Overrides ValueTypeEquals(Object)) |
 | Equals(RectangleF) | Indicates whether this rectangle and the specified RectangleF have the same location and size. |
 | GetHashCode | Returns the hash code for this rectangle. (Overrides ValueTypeGetHashCode) |
 | ToString | Returns a string representation of this RectangleF (its X, Y, Width and Height). (Overrides ValueTypeToString) |
Top
Operators
Fields| | Name | Description |
|---|
  | Empty | Represents a RectangleF with all components set to zero. |
Top
ExampleSelectPdf.Universal.Drawing.RectangleF rect =
new SelectPdf.Universal.Drawing.RectangleF(10f, 20f, 200f, 80f);
float right = rect.Right;
bool inside = rect.Contains(50f, 40f);Dim rect As New SelectPdf.Universal.Drawing.RectangleF(10.0F, 20.0F, 200.0F, 80.0F)
Dim right As Single = rect.Right
Dim inside As Boolean = rect.Contains(50.0F, 40.0F)
See Also