Spread WinForms 15
GrapeCity.Spreadsheet Assembly / GrapeCity.Drawing Namespace / Rectangle Structure / Union Method / Union(Rectangle,Rectangle) Method
A rectangle to union.
A rectangle to union.


In This Topic
Union(Rectangle,Rectangle) Method
In This Topic
Gets a Rectangle structure that contains the union of two Rectangle structures.
Syntax
'Declaration
 
Public Overloads Shared Function Union( _
   ByVal r1 As Rectangle, _
   ByVal r2 As Rectangle _
) As Rectangle
 
'Usage
 
Dim r1 As Rectangle
Dim r2 As Rectangle
Dim value As Rectangle
 
value = Rectangle.Union(r1, r2)

Parameters

r1
A rectangle to union.
r2
A rectangle to union.

Return Value

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