System::Drawing::Point::Offset 方法

Point::Offset(int, int) method

将当前对象表示的 X 和 Y 坐标值按指定的值进行偏移。

void System::Drawing::Point::Offset(int dx, int dy)
参数类型描述
dxint用于偏移 X 坐标值的值
dyint用于偏移 Y 坐标值的值

另见

Point::Offset(Point) method

分别使用指定的 Point 对象所表示的 X 和 Y 坐标值,对当前对象所表示的 X 和 Y 坐标进行偏移。

void System::Drawing::Point::Offset(Point point)
参数类型描述
pointPoint指定用于偏移 X 和 Y 坐标值的 Point 对象

另见