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
- value1
Type: Rectangle
The first Rectangle to contain. - value2
Type: Rectangle
The second Rectangle to contain. - result
Type: Rectangle
[OutAttribute] The Rectangle that must be the union of the first two rectangles.
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