xtd 0.2.0
Loading...
Searching...
No Matches

◆ offset() [4/4]

static rectangle_f xtd::drawing::rectangle_f::offset ( const rectangle_f rect,
float  x,
float  y 
)
staticnoexcept

Creates and returns an offsetted copy of the specified xtd::drawing::rectangle_f structure. The copy is offsetted by the specified amount. The original xtd::drawing::rectangle_f structure remains unmodified.

Parameters
rectThe xtd::drawing::rectangle_f with which to start. This rectangle is not modified.
xThe amount to offset the specified rectangle horizontally.
yThe amount to offset the specified rectangle vertically.
Returns
The offsetted xtd::drawing::rectangle_f.
Remarks
This method makes a copy of rect, offsets the copy, and then returns the offsetted copy.