Windows apps
Collapse the table of content
Expand the table of content

Rect.Union Method (Point)

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

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

public void Union(
	Point point
)

Parameters

point
Type: Windows.Foundation.Point

The point 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
Show:
© 2016 Microsoft