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.

Equivalent WinUI method: Microsoft.UI.Xaml.RectHelper.Union.

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.

Equivalent WinUI method: Microsoft.UI.Xaml.RectHelper.Union.

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.

Equivalent WinUI method: Microsoft.UI.Xaml.RectHelper.Union.

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

Rect

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.

Equivalent WinUI method: Microsoft.UI.Xaml.RectHelper.Union.

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

Rect

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

Attributes

See also

Applies to