예제 #1
0
        public bool LessThan(TextPoint Point)
        {
            CodeDomTextPoint tp = Point as CodeDomTextPoint;

            if (tp == null)
            {
                return(false);
            }

            return(tp.y > y || (tp.y == y && tp.x > x));
        }
예제 #2
0
        public bool EqualTo(TextPoint Point)
        {
            CodeDomTextPoint tp = Point as CodeDomTextPoint;

            if (tp == null)
            {
                return(false);
            }

            return(tp.x == x && tp.y == y);
        }
예제 #3
0
        public bool GreaterThan(TextPoint Point)
        {
            CodeDomTextPoint tp = Point as CodeDomTextPoint;

            if (tp == null)
            {
                return(false);
            }

            return(tp.y < y || (tp.y == y && tp.x < x));
        }