RectHelper.Union Method

Definition

Overloads

Union(Rect, Point)

Creates a rectangle that is exactly large enough to contain the a specified rectangle and a specified point. C# and Microsoft Visual Basic code should use Rect.Union(Point) instead.

Union(Rect, Rect)

Creates a rectangle that is exactly large enough to contain the two specified rectangles. C# and Microsoft Visual Basic code should use Rect.Union(Rect) instead.

Union(Rect, Point)

Creates a rectangle that is exactly large enough to contain the a specified rectangle and a specified point. C# and Microsoft Visual Basic code should use Rect.Union(Point) instead.

public:
 static Rect Union(Rect target, Point point);
/// [Windows.Foundation.Metadata.DefaultOverload]
/// [Windows.Foundation.Metadata.Overload("UnionWithPoint")]
 static Rect Union(Rect const& target, Point const& point);
[Windows.Foundation.Metadata.DefaultOverload]
[Windows.Foundation.Metadata.Overload("UnionWithPoint")]
public static Rect Union(Rect target, Point point);
function union(target, point)
Public Shared Function Union (target As Rect, point As Point) As Rect

Parameters

target
Rect

The rectangle to include.

point
Point

The point to include.

Returns

A rectangle that is exactly large enough to contain the specified rectangle and point.

Attributes

See also

Applies to

Union(Rect, Rect)

Creates a rectangle that is exactly large enough to contain the two specified rectangles. C# and Microsoft Visual Basic code should use Rect.Union(Rect) instead.

public:
 static Rect Union(Rect target, Rect rect);
/// [Windows.Foundation.Metadata.Overload("UnionWithRect")]
 static Rect Union(Rect const& target, Rect const& rect);
[Windows.Foundation.Metadata.Overload("UnionWithRect")]
public static Rect Union(Rect target, Rect rect);
function union(target, rect)
Public Shared Function Union (target As Rect, rect As Rect) As Rect

Parameters

target
Rect

The first rectangle to include.

rect
Rect

The second rectangle to include.

Returns

A rectangle that is exactly large enough to contain the two specified rectangles.

Attributes

See also

Applies to