Rect.Union 方法

定义

重载

Union(Point)

放大当前 Rect 所表示的矩形,使其刚好足以包含指定点。

Union(Rect)

放大当前 Rect 所表示的矩形,使其刚好足以包含指定矩形。

注解

此结构表示 Windows 运行时 (WinRT) 结构的 .NET 投影 Rect 。 有关详细信息,请参阅 UWP API 参考中的 Rect

有关此成员的详细信息和示例,请参阅 Rect.Union .NET FRAMEWORK API 参考中的。 (示例演示 WPF 用法,可能无法直接转换为 UWP XAML。 )

Union(Point)

放大当前 Rect 所表示的矩形,使其刚好足以包含指定点。

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)

参数

point
Point

要包含的点。

适用于

Union(Rect)

放大当前 Rect 所表示的矩形,使其刚好足以包含指定矩形。

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)

参数

rect
Rect

要包含的矩形。

适用于