Windows Dev Center

Rect.Union Method (Rect)

Expands the rectangle represented by the current Rect exactly enough to contain the specified rectangle.

Namespace:  Windows.Foundation
Assembly:  System.Runtime.WindowsRuntime (in System.Runtime.WindowsRuntime.dll)

public void Union(
	Rect rect


Type: Windows.Foundation.Rect

The rectangle to include.

Because this method alters the current Rect it acts upon, it is often a best practice to retain a copy before calling Union in case the union is not a desirable value for the current Rect.

Supported in: Windows Phone Silverlight 8
© 2015 Microsoft