Exemplo n.º 1
0
        public void GetRealPoint(ref Point Point, bool RangeStart)
        {
            CollapsedRange range1 = base.FindRange(Point, this.displayComparer) as CollapsedRange;

            if (range1 != null)
            {
                int num1 = range1.EndPoint.Y + range1.DeltaY;
                int num2 = range1.EndPoint.X + range1.DeltaX;
                if ((Point.Y == num1) && (Point.X != 0x7fffffff))
                {
                    int num3 = num2;
                    if ((Point.X < num3) && RangeStart)
                    {
                        Point.X = num3 - range1.DisplayText.Length;
                        Point.Y = range1.StartPoint.Y;
                        return;
                    }
                    if (Point.X < num3)
                    {
                        Point.X = num3;
                    }
                    Point.X += (range1.EndPoint.X - num3);
                }
                if (Point.Y != 0x7fffffff)
                {
                    Point.Y += (range1.EndPoint.Y - num1);
                }
            }
        }
Exemplo n.º 2
0
            public int Compare(object x, object y)
            {
                CollapsedRange range1 = ((RangeList.SortRange)x).Range as CollapsedRange;
                int            num1   = range1.EndPoint.Y + range1.DeltaY;
                int            num2   = (range1.EndPoint.X + range1.DeltaX) - Math.Max((int)(range1.DisplayText.Length - 1), 0);
                Point          point1 = (Point)y;

                if ((point1.Y >= num1) && ((point1.Y != num1) || (point1.X >= num2)))
                {
                    return(0);
                }
                return(1);
            }
Exemplo n.º 3
0
        public void GetDisplayPoint(ref Point Point)
        {
            CollapsedRange range1 = base.FindRange(Point, this.realComparer) as CollapsedRange;

            if (range1 != null)
            {
                if ((Point.Y == range1.EndPoint.Y) && (Point.X != 0x7fffffff))
                {
                    Point.X += range1.DeltaX;
                }
                if (Point.Y != 0x7fffffff)
                {
                    Point.Y += range1.DeltaY;
                }
            }
        }