Exemplo n.º 1
0
 public LineSeparatorViewTagger(ITextView textView)
 {
     if (textView == null)
     {
         throw new ArgumentNullException(nameof(textView));
     }
     this.textView           = textView;
     lineSeparatorCollection = LineSeparatorCollection.Empty;
     textView.Closed        += TextView_Closed;
 }
Exemplo n.º 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();
 }
Exemplo n.º 3
0
 void TextView_Closed(object sender, EventArgs e)
 {
     lineSeparatorCollection = LineSeparatorCollection.Empty;
     textView.Closed        -= TextView_Closed;
 }