# Find and Replace Dialog

The find and replace dialog allows you find text and replace it if needed.

![An image showing the find and replace dialog of RadRichTextBox for WPF](https://www.telerik.com/products/wpf/documentation/assets/052cd5ed8e01c4920731bc42e9b1ed9b/richtextbox-dialogs-find-replace-0.png)

The dialog can be opened from the **Find/Replace** button in the **Home** tab of the [RadRichTextBoxRibbonUI](https://www.telerik.com/products/wpf/documentation/controls/radrichtextbox/ui-for-applying-rich-text-formatting/features-radrichtextboxribbonui).

![An image showing the button that opens the find and replace dialog of RadRichTextBox for WPF](https://www.telerik.com/products/wpf/documentation/assets/ee471be4a48f92c32be599d2772a455c/richtextbox-dialogs-find-replace-1.png)

## Showing the Dialog Manually

The dialog can be shown by executing the `ShowFindReplaceDialogCommand`. See how to bind the command to an external button in the [Commands](https://www.telerik.com/products/wpf/documentation/controls/radrichtextbox/features/commands) article.

**Executing the show dialog command**

```C#
	this.richTextBox.Commands.ShowFindReplaceDialogCommand.Execute(null);
```

Alternatively, call the `ShowFindReplaceDialog` method of `RadRichTextBox`.

**Using the show dialog method**

```C#
	this.richTextBox.ShowFindReplaceDialog();
```

## See Also

* [Search in Document](https://www.telerik.com/products/wpf/documentation/controls/radrichtextbox/features/search)
