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

◆ offset() [3/4]

static rectangle xtd::drawing::rectangle::offset ( const rectangle rect,
const point pos 
)
staticnoexcept

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

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