[]
        
(Showing Draft Content)

C1.WPF.Extensions.Contains

Contains Method

Contains(Rect, Rect)

Determines if the one rectangular region is entirely contained within another structure.

Declaration
public static bool Contains(this Rect r, Rect rect)
Parameters
Type Name Description
Rect r

One rectangle to test.

Rect rect

Another rectangle.

Returns
Type Description
bool

This method returns true if the rectangular region represented by rect is entirely contained within r structure; otherwise false.