TX Text Control .NET for Windows Forms

FormattingStylesDialog Method

Method
Namespace
TXTextControl
Package
TXTextControl.TextControl.WinForms.SDK as TXTextControl.Windows.Forms.dll from the private NuGet feed or Text Control Offline Packages

Description

Invokes the built-in dialog box for creating, deleting and modifying formatting styles.

Syntax

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

Return Value

If the dialog has been left with the Cancel button the return value is DialogResult.Cancel. Otherwise, it is DialogResult.OK.

Examples

The following example opens the formatting styles dialog for the text control.

var result = textControl.FormattingStylesDialog();
Console.WriteLine($"Formatting Styles Dialog result: {result}");