Rectangle.Offset 方法

定义

重载

Offset(Point)

一个新 Rectangle,其 Location 偏移 dr

Offset(Double, Double)

一个新 Rectangle,其 Location 偏移 dxdy

Offset(Point)

一个新 Rectangle,其 Location 偏移 dr

public Xamarin.Forms.Rectangle Offset(Xamarin.Forms.Point dr);
member this.Offset : Xamarin.Forms.Point -> Xamarin.Forms.Rectangle

参数

dr
Point

一个 Point ,其 X 和 Y 值应添加到 thisRectangle的 中 Location

返回

一个新的 Rectangle ,它 Location 等于 thisRectangle由 翻译的 Locationdr

适用于

Offset(Double, Double)

一个新 Rectangle,其 Location 偏移 dxdy

public Xamarin.Forms.Rectangle Offset(double dx, double dy);
member this.Offset : double * double -> Xamarin.Forms.Rectangle

参数

dx
System.Double

沿 X 轴更改。

dy
System.Double

沿 Y 轴更改。

返回

一个新的 Rectangle ,其 Location 等于 thisRectangle由 和 dy翻译的 Locationdx

适用于