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