Union

RectangleF.Union method

Creates the smallest possible third rectangle that can contain both of two rectangles that form a union.

public static RectangleF Union(RectangleF a, RectangleF b)
Parameter Type Description
a RectangleF First rectangle to union.
b RectangleF Second rectangle to union.

Return Value

A third RectangleF structure that contains both of the two rectangles that form the union.

See Also