Dela via


Rectangle.Union Method (Rectangle, Rectangle, Rectangle)

Creates a new Rectangle that exactly contains two other rectangles.

Syntax

'Declaration
Public Shared Sub Union ( _
         ref value1 As Rectangle, _
         ref value2 As Rectangle, _
         out result As Rectangle _
)
public static void Union (
         ref Rectangle value1,
         ref Rectangle value2,
         out Rectangle result
)
public:
static void Union(
         ref Rectangle value1,
         ref Rectangle value2,
         out Rectangle result
)

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