## Rectangle::Offset(const Point\&) method


Offsets the position of the rectangle represented by the current object by the specified amounts.

```cpp
void System::Drawing::Rectangle::Offset(const Point &pos)
```


| Parameter | Type | Description |
| --- | --- | --- |
| pos | const Point\& | The [Point](../../point/) object that specifies the amount by which the rectangle is offset; the point's X coordinat value specifies the amount to add to the X coordinate of the upper left corner of the rectangle and the point's Y coordinate specifies the amount to add to the Y coordinate of the upper left corner of the rectangle |

## See Also

* Class [Point](../../point/)
* Class [Rectangle](../)
* Namespace [System::Drawing](../../)
* Library [Aspose.TeX for C++](../../../)
## Rectangle::Offset(int, int) method


Offsets the position of the rectangle represented by the current object by the specified amounts.

```cpp
void System::Drawing::Rectangle::Offset(int x, int y)
```


| Parameter | Type | Description |
| --- | --- | --- |
| x | int | The value to add to the current X coordinate of the rectangle |
| y | int | The value to add to the current Y coordinate of the rectangle |

## See Also

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