private void SelectPattern(int RowIndex, int Column, int Length)
{
Selection.Bounds.FirstColumn = Column;
Selection.Bounds.FirstRow = RowIndex;
Selection.Bounds.LastColumn = Column + Length;
Selection.Bounds.LastRow = RowIndex;
Caret.Position.X = Column + Length;
Caret.Position.Y = RowIndex;
Caret.CurrentRow.EnsureVisible();
ScrollIntoView();
Redraw();
}