Method WithOffset
WithOffset(Rect, double, double)
Offsets the location of given rectangle by the specified offset.
public static Rect WithOffset(this Rect rectangle, double offsetX, double offsetY)
Parameters
Returns
- Rect
Rect object with new location.
WithOffset(Rect, Size)
Offsets the location of given rectangle by the specified offset.
public static Rect WithOffset(this Rect rectangle, Size offset)
Parameters
Returns
- Rect
Rect object with new location.