コード例 #1
0
        public TextRange ApplyTo(TextRange range, out bool updated)
        {
            bool startUpdated, endUpdated;
            var start = ApplyTo(range.Start, false, out startUpdated);
            var end = ApplyTo(range.End, true, out endUpdated);

            updated = startUpdated || endUpdated;
            return updated ? new TextRange(start, end) : range;
        }
コード例 #2
0
 public TextRange ApplyTo(TextRange range)
 {
     bool updated;
     return ApplyTo(range, out updated);
 }
コード例 #3
0
 public HighlightRange(TextBuffer buffer, TextRange range)
 {
     this.Buffer = buffer;
     this.Range = range;
 }
コード例 #4
0
 public abstract HighlightRange AddHighlightRange(TextRange range);
コード例 #5
0
            public override HighlightRange AddHighlightRange(TextRange range)
            {
                var highlightRange = new HighlightRange(this.formatter.Buffer, range);

                this.formatter.highlightRanges.Add(highlightRange);
                this.changed = true;
                return highlightRange;
            }
コード例 #6
0
 public TextEditorTextRangeProvider(TextEditor editor, TextRange range)
 {
     this.editor = editor;
     this.range = range;
 }