## RectangleF::Offset(const PointF\&) method


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

```cpp
void System::Drawing::RectangleF::Offset(const PointF &pos)
```


| 参数 | 类型 | 描述 |
| --- | --- | --- |
| pos | const PointF\& | 指定矩形偏移量的 [PointF](../../pointf/) 对象；该点的 X 坐标值指定要加到矩形左上角 X 坐标的量，点的 Y 坐标指定要加到矩形左上角 Y 坐标的量。 |

## 另见

* Class [PointF](../../pointf/)
* Class [RectangleF](../)
* Namespace [System::Drawing](../../)
* Library [Aspose.Font for C++](../../../)
## RectangleF::Offset(float, float) method


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

```cpp
void System::Drawing::RectangleF::Offset(float x, float y)
```


| 参数 | 类型 | 描述 |
| --- | --- | --- |
| x | float | 要加到矩形当前 X 坐标的值 |
| y | float | 要加到矩形当前 Y 坐标的值 |

## 另见

* Class [RectangleF](../)
* Namespace [System::Drawing](../../)
* Library [Aspose.Font for C++](../../../)
