Partilhar via


Rectangle.Union Method (Rectangle, Rectangle)

Creates a new Rectangle that exactly contains two other rectangles.

Syntax

'Declaration
Public Shared Function Union ( _
         value1 As Rectangle, _
         value2 As Rectangle _
) As Rectangle 
public static Rectangle Union (
         Rectangle value1,
         Rectangle value2
)
public:
static Rectangle Union(
         Rectangle value1,
         Rectangle value2
)

Parameters

Return Value

Type: Rectangle
The union of the two Rectangle parameters.

Requirements

Namespace: Microsoft.Xna.Framework

Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)

See Also

Reference

Rectangle Structure
Rectangle Members
Microsoft.Xna.Framework Namespace

Platforms

Windows Phone