Rectangle 构造函数

定义

重载

Rectangle(Point, Size)

创建一个新 Rectangle 对象,其左上角位于 loc,高度和宽度由 sz 指定。

Rectangle(Double, Double, Double, Double)

创建一个新 Rectangle 对象,其左上角位于 (xy) 宽 widthheight

Rectangle(Point, Size)

创建一个新 Rectangle 对象,其左上角位于 loc,高度和宽度由 sz 指定。

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

参数

loc
Point

左上角的坐标。

sz
Size

高度和宽度。

适用于

Rectangle(Double, Double, Double, Double)

创建一个新 Rectangle 对象,其左上角位于 (xy) 宽 widthheight

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

参数

x
System.Double

左上角的 X 坐标。

y
System.Double

左上角的 Y 坐标。

width
System.Double

宽度。

height
System.Double

高度。

适用于