Alsing.Windows.Forms.SyntaxBox.EditViewControl.InsertAutolistText C# (CSharp) 메소드

InsertAutolistText() 공개 메소드

public InsertAutolistText ( ) : void
리턴 void
        public void InsertAutolistText()
        {
            string text = AutoList.SelectedText;
            var tr = new TextRange
                     {
                         FirstRow = Caret.Position.Y,
                         LastRow = Caret.Position.Y,
                         FirstColumn = AutoListStartPos.X,
                         LastColumn = Caret.Position.X
                     };

            // Vic says - why do we delete range here?
            // It seems to cause bugs.
            Document.DeleteRange(tr, true);
            //Caret.Position.X = AutoListStartPos.X;
            InsertText(text);
            SetFocus();
        }