Spread Windows Forms 17
GrapeCity.Spreadsheet Assembly / GrapeCity.Drawing Namespace / Rect Structure / Union Method
A rectangle to union.
A rectangle to union.


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

    Parameters

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

    Return Value

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