Rect.Intersect Method
Silverlight
Namespace: System.Windows
Assembly: System.Windows (in System.Windows.dll)
Parameters
- rect
- Type: System.Windows.Rect
The rectangle to intersect with the current rectangle.
If no intersection exists, the current Rect becomes Rect.Empty.
Because this method alters the current Rect it acts upon even if there is no intersect, it is often a best practice to retain a copy before calling Intersect in case the intersect is empty or otherwise not a desirable value.
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.