Rectangle Rectangle Constructors

Definition

Overloads

Rectangle(Point, Size) 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) 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) 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 Point

The coordinates of the top left corner.

sz
Size Size

The height and width.

Rectangle(Double, Double, Double, Double) 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
Double Double

The X coordinate of the top left corner.

y
Double Double

The Y coordinate of the top left corner.

width
Double Double

The width.

height
Double Double

The height.

Applies to