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
aRectangleFFirst rectangle to union.
bRectangleFSecond rectangle to union.

Return Value

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

See Also