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();
}