Xamarin.Forms.Rectangle Members

The members of Xamarin.Forms.Rectangle are listed below.

See Also: Inherited members from System.ValueType

Public Constructors

Creates a new Xamarin.Forms.Rectangle object with its top left corner at loc with a height and width that are specified by sz.
Creates a new Xamarin.Forms.Rectangle object with its top left corner at (x, y) and width wide and height tall.

Public Fields

static
ZeroRectangle. The Xamarin.Forms.Rectangle at {0,0} whose Size is {0,0}.

Public Properties

Bottomdouble. The bottom of the Xamarin.Forms.Rectangle.
[read-only]
CenterPoint. The Xamarin.Forms.Point halfway between Rectangle.Left and Rectangle.Right, Rectangle.Top and Rectangle.Bottom.
Heightdouble. Extent along the Y axis.
[read-only]
IsEmptybool. Whether thisXamarin.Forms.Rectangle has either Rectangle.Height or Rectangle.Width less than or equal to 0.
Leftdouble. The position of the Xamarin.Forms.Rectangle on the X axis.
LocationPoint. The Xamarin.Forms.Point defined by Rectangle.Left and Rectangle.Top.
Rightdouble. The furthest extent along the X axis.
SizeSize. The extent of the Xamarin.Forms.Rectangle along its X and Y axes.
Topdouble. The top of the Xamarin.Forms.Rectangle.
Widthdouble. The extent of this Xamarin.Forms.Rectangle along the X axis.
Xdouble. The position of this Xamarin.Forms.Rectangle on the X axis.
Ydouble. The position of this Xamarin.Forms.Rectangle on the Y axis.

Public Methods

Contains(Point) : bool
Whether the pt is within, or along the periphery, of this Xamarin.Forms.Rectangle.
Contains(Rectangle) : bool
Whether rect is entirely within, or along the periphery, of this Xamarin.Forms.Rectangle.
Contains(double, double) : bool
Whether the point described by x and y is within, or along the periphery of, this Xamarin.Forms.Rectangle.
override
Equals(object) : bool
Whether an object is a Xamarin.Forms.Rectangle and has exactly the same values as thisXamarin.Forms.Rectangle.
Equals(Rectangle) : bool
Whether a Xamarin.Forms.Rectangle has exactly the same values as thisXamarin.Forms.Rectangle.
static
FromLTRB(double, double, double, double) : Rectangle
Factory method to create a Xamarin.Forms.Rectangle from left, top, right, and bottom.
override
GetHashCode() : int
The hashcode for the Xamarin.Forms.Rectangle.
Inflate(Size) : Rectangle
Creates a Xamarin.Forms.Rectangle whose borders are inflated in every direction.
Inflate(double, double) : Rectangle
Creates a Xamarin.Forms.Rectangle whose borders are inflated in every direction.
Intersect(Rectangle) : Rectangle
A new Xamarin.Forms.Rectangle that is the intersection of this and r.
static
Intersect(Rectangle, Rectangle) : Rectangle
A new Xamarin.Forms.Rectangle that is the intersection of r1 and r2.
IntersectsWith(Rectangle) : bool
Whether thisXamarin.Forms.Rectangle intersects r.
Offset(Point) : Rectangle
A new Xamarin.Forms.Rectangle whose Rectangle.Location is offset by dr.
Offset(double, double) : Rectangle
A new Xamarin.Forms.Rectangle whose Rectangle.Location is offset by dx and dy.
Round() : Rectangle
Returns a new Xamarin.Forms.Rectangle whose values have been rounded to their nearest integral value.
override
ToString() : string
A human-readable description of the Xamarin.Forms.Rectangle.
Union(Rectangle) : Rectangle
A new Xamarin.Forms.Rectangle whose bounds cover the union of thisXamarin.Forms.Rectangle and r.
static
Union(Rectangle, Rectangle) : Rectangle
A new Xamarin.Forms.Rectangle whose bounds cover the union of r1 and r2.

Public Operators

static
Equality(Rectangle, Rectangle)Whether two Xamarin.Forms.Rectangles have equal values.
static
Inequality(Rectangle, Rectangle)Whether two Xamarin.Forms.Rectangles have unequal values.