Show / Hide Table of Contents

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. If either rectangle is empty (Width or Height is <=0), the result is another rectangle. If both empty - empty rectangle.

public bool Union(RECT r2)
Parameters
r2  (RECT)
Returns
bool

true if finally this rectangle is not empty.


Overload(top)

Returns the union of two rectangles. Union is the smallest rectangle that contains two full rectangles. If either rectangle is empty (Width or Height is <=0), the result is another rectangle. If both empty - empty rectangle.

public static RECT Union(RECT r1, RECT r2)
Parameters
r1  (RECT)
r2  (RECT)
Returns
RECT