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)); }
public void InsertLine(int index, string line) { if (index < 0 || index > _textLines.Count) { return; } _textLines.Insert(index, line); AddLineEvent?.Invoke(this, new TextLineEventArgs(index)); }