Exemple #1
0
 public void InsertLines(int index, IList <string> lines)
 {
     if (index < 0 || index > _textLines.Count)
     {
         return;
     }
     _textLines.InsertRange(index, lines);
     AddLineEvent?.Invoke(this, new TextLineEventArgs(index, lines.Count));
 }
Exemple #2
0
 public void InsertLine(int index, string line)
 {
     if (index < 0 || index > _textLines.Count)
     {
         return;
     }
     _textLines.Insert(index, line);
     AddLineEvent?.Invoke(this, new TextLineEventArgs(index));
 }