示例#1
0
 private void OnGoToRequested(
     int start,
     int selectionLength,
     int line)
 {
     if (start > 0)
     {
         if (selectionLength > 0)
         {
             ContentText.Select(start, selectionLength);
         }
         else
         {
             ContentText.CaretIndex = start;
         }
         ContentText.ScrollToLine(line);
         Focus();
     }
 }