# TXDrawingControl.FormatShapesDialog Method

> Opens a dialog to format selected shapes.

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

---

### Description

Opens a dialog to format [selected shapes](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/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-winforms/reference/txtextcontrol-drawing/selection/shapes-property/llms-full.txt).

```csharp
public System.Windows.Forms.DialogResult FormatShapesDialog();
```

```vbnet
Public Function FormatShapesDialog() As System.Windows.Forms.DialogResult
```

#### FormatShapesDialog(int)

```csharp
public System.Windows.Forms.DialogResult FormatShapesDialog(int activeTab);
```

```vbnet
Public Function FormatShapesDialog(activeTab As Integer) As System.Windows.Forms.DialogResult
```

### Return Value

The return value is DialogResult.OK if the OK button was pressed, DialogResult.Cancel if the dialog was cancelled and DialogResult.None 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-winforms/reference/txtextcontrol-drawing/txdrawingcontrol/cut-method/llms-full.txt)
- **Next:** [TXDrawingControl.IsCanvasVisible Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-drawing/txdrawingcontrol/iscanvasvisible-property/llms-full.txt)
