示例#1
0
 public LineSeparatorViewTagger(ITextView textView)
 {
     if (textView == null)
     {
         throw new ArgumentNullException(nameof(textView));
     }
     this.textView = textView;
     this.lineSeparatorCollection = LineSeparatorCollection.Empty;
     textView.Closed += TextView_Closed;
 }
示例#2
0
 public void SetLineSeparatorCollection(LineSeparatorCollection coll)
 {
     if (textView.IsClosed)
     {
         return;
     }
     if (coll == null)
     {
         coll = LineSeparatorCollection.Empty;
     }
     if (lineSeparatorCollection == coll)
     {
         return;
     }
     lineSeparatorCollection = coll;
     RefreshAllTags();
 }
示例#3
0
 void TextView_Closed(object sender, EventArgs e)
 {
     lineSeparatorCollection = LineSeparatorCollection.Empty;
     textView.Closed        -= TextView_Closed;
 }