Alsing.SourceCode.SyntaxDocument.Insert C# (CSharp) Метод

Insert() публичный Метод

Insert a text at the specified row index
public Insert ( string text, int index, bool storeUndo ) : Row
text string Text to insert
index int Row index where the text should be inserted
storeUndo bool true if and undo action should be added to the undo stack
Результат Row
        public Row Insert(string text, int index, bool storeUndo)
        {
            var xtl = new Row {Document = this};
            rows.Insert(index, xtl);
            xtl.Text = text;
            if (storeUndo)
            {
                var undo = new UndoBlock {
                               Text = text,
                               
                           };

                undo.Position.Y = IndexOf(xtl);
                AddToUndoList(undo);
            }

            //this.ResetVisibleRows ();
            return xtl;
        }

Same methods

SyntaxDocument::Insert ( string text, int index ) : Row