Ejemplo n.º 1
0
 public bool IntersectsWith(Range otherRange)
 {
     return otherRange.PositionInRange(_start) | otherRange.PositionInRange(_end) | PositionInRange(otherRange.Start) | PositionInRange(otherRange.End);
 }
Ejemplo n.º 2
0
		public StyleNeededEventArgs(Range range)
		{
			_range = range;
		}
Ejemplo n.º 3
0
 protected internal ManagedRange(Range range)
     : this(range.Start, range.End, range.Scintilla)
 {
 }
Ejemplo n.º 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;
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 7
0
 public void Copy(Range rangeToCopy)
 {
     Copy(rangeToCopy.Start, rangeToCopy.End);
 }