Ejemplo n.º 1
0
        protected internal int InternalGet(Point StartPoint, Point EndPoint)
        {
            int num1;

            River.Orqa.Editor.Common.Range range1 = new River.Orqa.Editor.Common.Range(StartPoint, EndPoint);
            if (base.FindFirst(range1, out num1, this.rangeComparer))
            {
                return(((IBookMark)this[num1]).Index);
            }
            return(-1);
        }
Ejemplo n.º 2
0
        protected internal int InternalGet(Point StartPoint, Point EndPoint, IList List)
        {
            int num1;

            List.Clear();
            River.Orqa.Editor.Common.Range range1 = new River.Orqa.Editor.Common.Range(StartPoint, EndPoint);
            if (base.FindFirst(range1, out num1, this.rangeComparer))
            {
                for (int num2 = num1; num2 < this.Count; num2++)
                {
                    if (this.rangeComparer.Compare(this[num2], range1) != 0)
                    {
                        break;
                    }
                    List.Add(this[num2]);
                }
            }
            return(List.Count);
        }