TX Text Control .NET for Windows Forms

FormatShapesDialog Method

Method|Introduced in 23.0
Namespace
TXTextControl.Drawing
Package
TXTextControl.TextControl.WinForms.SDK as TXDrawing.Windows.Forms.dll from the private NuGet feed or Text Control Offline Packages

Description

Opens a dialog to format selected shapes.

Syntax

FormatShapesDialog()

Opens a dialog to format selected shapes.

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

FormatShapesDialog(int)

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

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.

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