Rect.Union 方法

定义

重载

Union(Point)

放大当前 Rect 所表示的矩形,使其刚好足以包含指定点。Expands the rectangle represented by the current Rect exactly enough to contain the specified point.

Union(Rect)

放大当前 Rect 所表示的矩形,使其刚好足以包含指定矩形。Expands the rectangle represented by the current Rect exactly enough to contain the specified rectangle.

注解

此结构表示 Windows 运行时 (WinRT) 结构的 .NET 投影 RectThis struct represents the .NET projection of the Windows Runtime (WinRT) Rect struct. 有关详细信息,请参阅 UWP API 参考中的 RectFor more information, see Rect in the UWP API reference.

有关此成员的详细信息和示例,请参阅 Rect.Union .NET FRAMEWORK API 参考中的。For more information and examples of this member, see Rect.Union in the .NET Framework API reference. (示例演示 WPF 用法,可能无法直接转换为 UWP XAML。 ) (Examples show WPF usage and might not translate directly to UWP XAML.)

Union(Point)

放大当前 Rect 所表示的矩形,使其刚好足以包含指定点。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)

参数

point
Point

要包含的点。The point to include.

适用于

Union(Rect)

放大当前 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)

参数

rect
Rect

要包含的矩形。The rectangle to include.

适用于