예제 #1
0
 public LineSeparatorViewTagger(ITextView textView)
 {
     if (textView == null)
     {
         throw new ArgumentNullException(nameof(textView));
     }
     this.textView           = textView;
     lineSeparatorCollection = LineSeparatorCollection.Empty;
     textView.Closed        += TextView_Closed;
 }
예제 #2
0
 public void SetLineSeparatorCollection(LineSeparatorCollection coll)
 {
     if (textView.IsClosed)
     {
         return;
     }
     if (coll is 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;
 }