[]
        
(Showing Draft Content)

GrapeCity.Drawing.Rectangle.Union

Union Method

Union(Rectangle, Rectangle)

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

Declaration
public static Rectangle Union(Rectangle r1, Rectangle r2)
Public Shared Function Union(r1 As Rectangle, r2 As Rectangle) As Rectangle
Parameters
Type Name Description
Rectangle r1

A rectangle to union.

Rectangle r2

A rectangle to union.

Returns
Type Description
Rectangle

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

Union(Rectangle)

Unions the specified Rectangle value with this Rectangle value.

Declaration
public void Union(Rectangle r)
Public Sub Union(r As Rectangle)
Parameters
Type Name Description
Rectangle r

A rectangle to union.