Spread WPF 18
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 Rectangle structure that contains the union of two Rectangle 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 Rectangle structure that bounds the union of the two Rectangle structures.
    See Also