Offset

Rectangle.Offset method (1 of 2)

Adjusts the location of this rectangle by the specified amount.

public void Offset(Point pos)
ParameterTypeDescription
posPointAmount to offset the location.

See Also


Rectangle.Offset method (2 of 2)

Adjusts the location of this rectangle by the specified amount.

public void Offset(int x, int y)
ParameterTypeDescription
xInt32The horizontal offset.
yInt32The vertical offset.

See Also