RectangleF.Offset 方法

定义

将此矩形的位置调整指定的量。Adjusts the location of this rectangle by the specified amount.

重载

Offset(PointF)

将此矩形的位置调整指定的量。Adjusts the location of this rectangle by the specified amount.

Offset(Single, Single)

将此矩形的位置调整指定的量。Adjusts the location of this rectangle by the specified amount.

Offset(PointF)

将此矩形的位置调整指定的量。Adjusts the location of this rectangle by the specified amount.

public:
 void Offset(System::Drawing::PointF pos);
public void Offset (System.Drawing.PointF pos);
member this.Offset : System.Drawing.PointF -> unit
Public Sub Offset (pos As PointF)

参数

pos
PointF

该位置的偏移量。The amount to offset the location.

适用于

Offset(Single, Single)

将此矩形的位置调整指定的量。Adjusts the location of this rectangle by the specified amount.

public:
 void Offset(float x, float y);
public void Offset (float x, float y);
member this.Offset : single * single -> unit
Public Sub Offset (x As Single, y As Single)

参数

x
Single

该位置的水平偏移量。The amount to offset the location horizontally.

y
Single

该位置的垂直偏移量。The amount to offset the location vertically.

适用于