# Line Numbers Dialog

This dialog allows you to adjust the [line numbering](https://www.telerik.com/products/wpf/documentation/controls/radrichtextbox/features/line-numbering) in the document.

![An image showing the line numbering dialog of RadRichTextBox for WPF](https://www.telerik.com/products/wpf/documentation/assets/bf61dafd5695937f1a22d940ca006621/richtextbox-dialogs-line-numbers-0.png)

The dialog can be opened from the **Line Numbers** drop down button in the **Page Layout** 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 line numbering dialog of RadRichTextBox for WPF](https://www.telerik.com/products/wpf/documentation/assets/df364d052f159386c328099ebb492855/richtextbox-dialogs-line-numbers-1.png)

## Showing the Dialog Manually

The dialog can be shown by executing the `ShowLineNumberingDialogCommand`. 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.ShowLineNumberingDialogCommand.Execute(null);
```

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

**Using the show dialog method**

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