public void InsertLine(int row, string text) { var line = new TextBufferLine { Text = text }; _lines.Insert(row, line); }
public TextBufferLine GetLineOrDefault(int l) { TextBufferLine line; if (l < _lines.Count) { line = _lines[l]; } else { line = new TextBufferLine(); } return(line); }