System::Drawing::Rectangle::Offset 方法

Rectangle::Offset(const Point&) method

按指定的量偏移当前对象所表示的矩形的位置。

void System::Drawing::Rectangle::Offset(const Point &pos)
参数类型描述
posconst Point&指定矩形偏移量的 Point 对象;该点的 X 坐标值指定要加到矩形左上角 X 坐标的量,Y 坐标值指定要加到矩形左上角 Y 坐标的量。

另见

Rectangle::Offset(int, int) method

按指定的量偏移当前对象所表示的矩形的位置。

void System::Drawing::Rectangle::Offset(int x, int y)
参数类型描述
xint要加到矩形当前 X 坐标的值
yint要加到矩形当前 Y 坐标的值

另见