Exemplo n.º 1
0
 private void BtnFindReplace_Click(object sender, RoutedEventArgs e)
 {
     FindAndReplacePanel.FindOrReplace(FindOperation, ReplaceOperation,
                                       (this.TextEditor.Selection.IsEmpty
                                        ? this.TextEditor.Document.ContentStart.GetOffsetToPosition(this.TextEditor.CaretPosition)
                                        : -1),
                                       !this.TextEditor.Selection.IsEmpty);
 }
 private void BtnFindReplace_Click(object sender, RoutedEventArgs e)
 {
     FindAndReplacePanel.FindOrReplace(FindOperation, ReplaceOperation, (this.TextEditor.SelectionLength > 0 ? -1 : this.TextEditor.CaretOffset),
                                       this.TextEditor.SelectionLength > 0);
 }
 private void BtnFind_Click(object sender, RoutedEventArgs e)
 {
     FindAndReplacePanel.FindOrReplace(FindOperation, null, (this.TextEditor.SelectionLength > 0 ? -1 : this.TextEditor.CaretOffset),
                                       this.TextEditor.SelectionLength > 0, sender.IsEqual(Key.F3));
 }