Method WithOffset
WithOffset(Rectangle, int, int)
Offsets the location of given rectangle by the specified offset.
public static Rectangle WithOffset(this Rectangle rectangle, int offsetX, int offsetY)
Parameters
rectangle
RectangleRectangle to process.
offsetX
intHorizontal offset.
offsetY
intVertical offset.
Returns
- Rectangle
Rectangle object with new location.
WithOffset(Rectangle, Size)
Offsets the location of given rectangle by the specified offset.
public static Rectangle WithOffset(this Rectangle rectangle, Size offset)
Parameters
Returns
- Rectangle
Rectangle object with new location.