コード例 #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));
        }