Rectangle.Union

Rectangle.Union method

Gets a Rectangle structure that contains the union of two Rectangle structures.

public static Rectangle Union(Rectangle a, Rectangle b)
ParameterTypeDescription
aRectangleA first rectangle to union.
bRectangleA second rectangle to union.

Return Value

A Rectangle structure that bounds the union of the two Rectangle structures.

See Also