# Tables Dialogs

The RichTextBox component provides several dialogs to work create and modify [tables](https://www.telerik.com/products/wpf/documentation/controls/radrichtextbox/document-elements/table/table-overview).

## Insert Table Dialog

This dialog allows you to create a table by defining its dimensions.

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

The dialog can be opened from the **Insert Table** option in the **Table** drop down button located in the **Insert** 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 insert tables dialog of RadRichTextBox for WPF](https://www.telerik.com/products/wpf/documentation/assets/2510b2778e31d32d4d644f40c437d454/richtextbox-dialogs-tables-1.png)

## Table Properties Dialog

This dialog allows you to adjust the table's [properties](https://www.telerik.com/products/wpf/documentation/controls/radrichtextbox/document-elements/table/api).

![An image showing the table properties dialog of RadRichTextBox for WPF](https://www.telerik.com/products/wpf/documentation/assets/3c64b5ec4a416313aca97060ee0e300c/richtextbox-dialogs-tables-2.png)

The dialog can be opened from the **Properties** option in the **Layout** contextual tab of the [RadRichTextBoxRibbonUI](https://www.telerik.com/products/wpf/documentation/controls/radrichtextbox/ui-for-applying-rich-text-formatting/features-radrichtextboxribbonui) or via the in the **Table Properties** option in the right-click menu (context menu) of `RadRichTextBox`.

![An image showing the button that opens the table properties dialog of RadRichTextBox for WPF](https://www.telerik.com/products/wpf/documentation/assets/88b05e71e300cecc1c812bca9fb06d6f/richtextbox-dialogs-tables-3.png)

![An image showing the context menu option that opens the table properties dialog of RadRichTextBox for WPF](https://www.telerik.com/products/wpf/documentation/assets/a220f97dc7c80b749a1bb6ba78286760/richtextbox-dialogs-tables-4.png)

## Table Borders Dialog

This dialog allows you to adjust the table boders.

![An image showing the table borders dialog of RadRichTextBox for WPF](https://www.telerik.com/products/wpf/documentation/assets/e284e745e03fc42550d02c9a0f261d2e/richtextbox-dialogs-tables-5.png)

The dialog can be opened from the **Table Borders** option in the right-click menu (context menu) of `RadRichTextBox`.

![An image showing the button that opens the table borders dialog of RadRichTextBox for WPF](https://www.telerik.com/products/wpf/documentation/assets/ffeac6ef6e6a1ac715dc4c919cc02a13/richtextbox-dialogs-tables-6.png)

## Table Styles Dialog

The table style dialogs allows you to create and modify the styling used in the tables of the document.

![An image showing the create table styles dialog of RadRichTextBox for WPF](https://www.telerik.com/products/wpf/documentation/assets/cc54711136e024262d2abd4a7ccdbafa/richtextbox-dialogs-tables-7.png)

![An image showing the modify  table styles dialog of RadRichTextBox for WPF](https://www.telerik.com/products/wpf/documentation/assets/07a31a3206960bfc935d210c5298e840/richtextbox-dialogs-tables-8.png)

The table styles dialogs can be opened from the **New Table Style** and **Modify Table Style** buttons in the **Table Styles** drop down of the **Design** contextual tab of [RadRichTextBoxRibbonUI](https://www.telerik.com/products/wpf/documentation/controls/radrichtextbox/ui-for-applying-rich-text-formatting/features-radrichtextboxribbonui).

![An image showing the table styles dialogs buttons of RadRichTextBoxUI for WPF](https://www.telerik.com/products/wpf/documentation/assets/07a31a3206960bfc935d210c5298e840/richtextbox-dialogs-tables-8.png)

## Showing the Dialogs Manually

The table dialogs can be shown by executing the following commands:

* `ShowTablePropertiesDialogCommand`
* `ShowTableBordersDialogCommand`
* `ShowInsertTableDialogCommand`

See how to bind the commands to external buttons in the [Commands](https://www.telerik.com/products/wpf/documentation/controls/radrichtextbox/features/commands) article.

**Executing the show dialog command**

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

Alternatively, you can call the associated `RadRichTextBox` methods.

* `ShowInsertTableDialog`
* `ShowTableBordersDialog`
* `ShowTablePropertiesDialog`

**Using the show dialog method**

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