Exemple #1
0
        public void InsertLine(int row, string text)
        {
            var line = new TextBufferLine {
                Text = text
            };

            _lines.Insert(row, line);
        }
Exemple #2
0
        public TextBufferLine GetLineOrDefault(int l)
        {
            TextBufferLine line;

            if (l < _lines.Count)
            {
                line = _lines[l];
            }
            else
            {
                line = new TextBufferLine();
            }
            return(line);
        }