Edit

Share via


Rect.Intersect(Rect) Method

Definition

Finds the intersection of the rectangle represented by the current Rect and the rectangle represented by the specified Rect, and stores the result as the current 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)

Parameters

rect
Rect

The rectangle to intersect with the current 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 <System.Windows.Rect.Intersect%2A?displayProperty=nameWithType> in the .NET Framework API reference. (Examples show WPF usage and might not translate directly to UWP XAML.)

Applies to