C#
VB
C++
Gets a Rectangle structure that contains the union of two Rectangle structures.
rect1
A rectangle to union.
rect2
A rectangle to union.
The two rectangles should have the same unit of measurement. If the unit is not the same the union process will be done according to the rect1 unit of measurement.