RectangleF.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)
ParameterTypeDescription
aRectangleFA first rectangle to union.
bRectangleFA second rectangle to union.

Return Value

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

See Also