次の方法で共有


Rectangle.Offset Method

Definition

Overloads

Offset(Point)

A new Rectangle whose Location is offset by dr.

Offset(Double, Double)

A new Rectangle whose Location is offset by dx and dy.

Offset(Point)

A new Rectangle whose Location is offset by dr.

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

Parameters

dr
Point

A Point whose X and Y values should be added to thisRectangle's Location.

Returns

A new Rectangle whose Location is equal to thisRectangle's Location translated by dr.

Applies to

Offset(Double, Double)

A new Rectangle whose Location is offset by dx and dy.

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

Parameters

dx
System.Double

Change along the X axis.

dy
System.Double

Change along the Y axis.

Returns

A new Rectangle whose Location is equal to thisRectangle's Location translated by dx and dy.

Applies to