Пример #1
0
        public virtual string GetText(Interval interval)
        {
            int start = interval.a;
            int stop  = interval.b;

            if (stop >= n)
            {
                stop = n - 1;
            }
            int count = stop - start + 1;

            if (start >= n)
            {
                return(string.Empty);
            }
            return(data.TextSegment(start, stop));
        }
Пример #2
0
 /// <summary>
 /// Part of the text of the line, from start index to end index (included)
 /// </summary>
 public string TextSegment(int startIndex, int endIndexInclusive)
 {
     return(textLine.TextSegment(startIndex, endIndexInclusive));
 }