Rectangle Constructors

Definition

Overloads

Rectangle(Point, Size)

Creates a new Rectangle object with its top left corner at loc with a height and width that are specified by sz.

Rectangle(Double, Double, Double, Double)

Creates a new Rectangle object with its top left corner at (x, y) and width wide and height tall.

Rectangle(Point, Size)

Creates a new Rectangle object with its top left corner at loc with a height and width that are specified by sz.

public Rectangle (Xamarin.Forms.Point loc, Xamarin.Forms.Size sz);
new Xamarin.Forms.Rectangle : Xamarin.Forms.Point * Xamarin.Forms.Size -> Xamarin.Forms.Rectangle

Parameters

loc
Point

The coordinates of the top left corner.

sz
Size

The height and width.

Applies to

Rectangle(Double, Double, Double, Double)

Creates a new Rectangle object with its top left corner at (x, y) and width wide and height tall.

public Rectangle (double x, double y, double width, double height);
new Xamarin.Forms.Rectangle : double * double * double * double -> Xamarin.Forms.Rectangle

Parameters

x
System.Double

The X coordinate of the top left corner.

y
System.Double

The Y coordinate of the top left corner.

width
System.Double

The width.

height
System.Double

The height.

Applies to