Bewerken

Delen via


Rect.Union Method

Definition

Overloads

Union(Point)

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

Union(Rect)

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

Remarks

This struct represents the .NET projection of the Windows Runtime (WinRT) Rect struct. For more information, see Rect in the UWP API reference.

For more information and examples of this member, see Rect.Union in the .NET Framework API reference. (Examples show WPF usage and might not translate directly to UWP XAML.)

Union(Point)

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

public:
 void Union(Windows::Foundation::Point point);
public void Union (Windows.Foundation.Point point);
member this.Union : Windows.Foundation.Point -> unit
Public Sub Union (point As Point)

Parameters

point
Point

The point to include.

Applies to

Union(Rect)

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

public:
 void Union(Windows::Foundation::Rect rect);
public void Union (Windows.Foundation.Rect rect);
member this.Union : Windows.Foundation.Rect -> unit
Public Sub Union (rect As Rect)

Parameters

rect
Rect

The rectangle to include.

Applies to