V2/Cet/HW/Cet.HW.GDI/Geometries/Rectangle.cs
/// <summary>
/// Determines if the rectangular region represented by rect is entirely contained within this Rectangle structure.
/// </summary>
/// <param name="rect">The Rectangle to test.</param>
/// <returns>This method returns true if the rectangular region represented by rect is entirely contained within this Rectangle structure; otherwise false.</returns>
Determines if the rectangular region represented by rect is entirely contained within this Rectangle structure.
Determines if the rectangular region represented by rect is entirely contained within this Rectangle structure .
public bool Contains(Rectangle rect)
        {
            return
                this.IsEmpty == false &&
                rect.IsEmpty == false &&
                rect.Right >= this.X &&
                rect.X <= this.Right &&
                rect.Bottom >= this.Y &&
                rect.Y <= this.Bottom;
        }
public bool Contains ( Rectangle rect ) { return this . IsEmpty == false && rect . IsEmpty == false && rect . Right >= this . X && rect . X <= this . Right && rect . Bottom >= this . Y && rect . Y <= this . Bottom ; }
Determines if the rectangular region represented by rect is entirely contained within this Rectangle structure.
Determines if the rectangular region represented by rect is entirely contained within this Rectangle structure .
This method returns true if the rectangular region represented by rect is entirely contained within this Rectangle structure; otherwise false.
This method returns true if the rectangular region represented by rect is entirely contained within this Rectangle structure ; otherwise false .
rect
Rectangle
The Rectangle to test.
The Rectangle to test .