Method RECT.Union(+ 1 overload)
Overload
Replaces this rectangle with the union of itself and the specified rectangle. Union is the smallest rectangle that contains two full rectangles.
public bool Union(RECT r2)
Parameters
| r2 (RECT) |
Returns
|
bool
|
Remarks
If either rectangle is empty (RECT.Width or RECT.Height is <=0), the result is another rectangle. If both empty - empty rectangle.
Overload(top)
Returns the union of two rectangles. Union is the smallest rectangle that contains two full rectangles.
public static RECT Union(RECT r1, RECT r2)
Parameters
Returns
Remarks
If either rectangle is empty (RECT.Width or RECT.Height is <=0), the result is another rectangle. If both empty - empty rectangle.