PowerArgs.Cli.Rectangle.Contains C# (CSharp) Method

Contains() public method

public Contains ( Rectangle other ) : bool
other Rectangle
return bool
        public bool Contains(Rectangle other)
        {
            var insideLeftEdge = other.Left >= Left;
            var insideRightEdge = other.Right <= Right;

            var insideTopEdge = other.Top >= Top;
            var insideBottomEdge = other.Bottom <= Bottom;

            return insideLeftEdge && insideRightEdge && insideTopEdge && insideBottomEdge;
        }

Same methods

Rectangle::Contains ( int x, int y ) : bool