Вот пример того, как выбрать текст с помощью текстового редактора, включенного в SharpDevelop 3.2:
// Two lines of text.
textEditorControl.Text =
"First\r\n" +
"Second\r\n";
// Start of selection - columns and lines are zero based.
int startCol = 0;
int startLine = 1;
TextLocation start = new TextLocation(startCol, startLine);
// End of selection.
int endCol = 6;
int endLine = 1;
TextLocation end = new TextLocation(endCol, endLine);
// Select the second line.
textEditorControl.ActiveTextAreaControl.SelectionManager.SetSelection(start, end);
// Move cursor to end of selection.
textEditorControl.ActiveTextAreaControl.Caret.Position = end;
Я предполагаю, что под словом «заставить текстовое поле перейти к определенной строке» вы подразумеваете перемещение курсора к этой строке. Последняя строка кода в приведенном выше примере показывает, как это сделать.