Rect.Intersect(Rect) 方法

定义

查找当前 Rect 所表示的矩形与指定的 Rect 所表示的矩形之间的交集,并将结果存储为当前 Rect

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

参数

rect
Rect

要与当前矩形相交的矩形。

注解

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

有关此成员的详细信息和示例,请参阅 .NET Framework API 参考中的 <displayProperty% 2A? Namewithtype> =>。 (示例演示 WPF 用法,可能无法直接转换为 UWP XAML。 )

适用于