# TXDrawingControl.FormatShapesDialog Method

> Opens a dialog to format selected shapes.

- **Product:** TX Text Control .NET for WPF
- **Section:** Reference
- **Kind:** Method
- **Introduced:** 23.0
- **Namespace:** `TXTextControl.WPF.Drawing`
- **Package:** `TXTextControl.TextControl.WPF.SDK` (assembly `TXDrawing.WPF.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXDrawing.WPF.dll` from the setup
- **Path:** TX Text Control .NET for WPF > Reference > TXTextControl.WPF.Drawing > TXDrawingControl.FormatShapesDialog Method
- **510 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf-drawing/txdrawingcontrol/formatshapesdialog-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf-drawing/txdrawingcontrol/formatshapesdialog-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf-drawing/txdrawingcontrol/formatshapesdialog-method/llms-full.txt

---

### Description

Opens a dialog to format [selected shapes](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-drawing/selection/shapes-property/llms-full.txt).

### Syntax

#### FormatShapesDialog()

Opens a dialog to format [selected shapes](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-drawing/selection/shapes-property/llms-full.txt).

```csharp
public bool? FormatShapesDialog();
```

```vbnet
Public Function FormatShapesDialog() As Boolean?
```

#### FormatShapesDialog(int)

```csharp
public bool? FormatShapesDialog(int activeTab);
```

```vbnet
Public Function FormatShapesDialog(activeTab As Integer) As Boolean?
```

### Return Value

The return value is true if the OK button was pressed, false if the dialog was cancelled and Null if the dialog was not opened because no shape to format was selected.

### Examples

The following example opens the format shapes dialog for the txdrawing control.

```csharp
var result = tXDrawingControl.FormatShapesDialog(10);
Console.WriteLine($"Format Shapes Dialog result: {result}");
```

```vbnet
Dim result = tXDrawingControl.FormatShapesDialog(10)
Console.WriteLine($"Format Shapes Dialog result: {result}")
```

---

## Nearby

- **Previous:** [TXDrawingControl.Cut Method](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf-drawing/txdrawingcontrol/cut-method/llms-full.txt)
- **Next:** [TXDrawingControl.IsCanvasVisible Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf-drawing/txdrawingcontrol/iscanvasvisible-property/llms-full.txt)
