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

◆ add() [3/4]

static rectangle xtd::drawing::rectangle::add ( const rectangle rect,
int32  x,
int32  y 
)
staticnoexcept

Creates and returns an added copy of the specified xtd::drawing::rectangle structure. The copy is added 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.
xThe amount to add the specified rectangle horizontally.
yThe amount to add the specified rectangle vertically.
Returns
The added xtd::drawing::rectangle.
Remarks
This method makes a copy of rect, adds the copy, and then returns the added copy.