Example #1
0
 public bool IntersectsWith(Range otherRange)
 {
     return otherRange.PositionInRange(_start) | otherRange.PositionInRange(_end) | PositionInRange(otherRange.Start) | PositionInRange(otherRange.End);
 }
Example #2
0
		public StyleNeededEventArgs(Range range)
		{
			_range = range;
		}
Example #3
0
 protected internal ManagedRange(Range range)
     : this(range.Start, range.End, range.Scintilla)
 {
 }
Example #4
0
        public List<Range> SearchAll(Range searchRange)
        {
            Range foundRange = Scintilla.GetRange(-1, -1);

            List<Range> ret = new List<Range>();
            do
            {
                foundRange = Search(searchRange, foundRange);
                if (foundRange != null)
                    ret.Add(foundRange);
            }
            while (foundRange != null);
            return ret;
        }
Example #5
0
        public Range Search(Range searchRange, Range startingAfterRange)
        {
            int start = startingAfterRange.End;
            if (start > NativeScintilla.GetTextLength())
                return null;

            int foundStart = NativeScintilla.IndicatorEnd(_number, start);
            int foundEnd = NativeScintilla.IndicatorEnd(_number, foundStart);
            if (foundStart < 0 || foundStart > searchRange.End || foundStart == foundEnd)
                return null;

            return new Range(foundStart, foundEnd, Scintilla);
        }
Example #6
0
        public Range Search(Range searchRange)
        {
            int foundStart = NativeScintilla.IndicatorEnd(_number, searchRange.Start);
            int foundEnd = NativeScintilla.IndicatorEnd(_number, foundStart);
            if (foundStart < 0 || foundStart > searchRange.End || foundStart == foundEnd)
                return null;

            return new Range(foundStart, foundEnd, Scintilla);
        }
Example #7
0
 public void Copy(Range rangeToCopy)
 {
     Copy(rangeToCopy.Start, rangeToCopy.End);
 }