TX Text Control .NET for Windows Forms

FormFieldDialog Method

Method|Introduced in 31.0
Namespace
TXTextControl
Package
TXTextControl.TextControl.WinForms.SDK as TXTextControl.dll from the private NuGet feed or Text Control Offline Packages

Description

Opens a dialog box to alter the formatting attributes of the form field.

Syntax

public Selection.DialogResult FormFieldDialog();

Examples

The following example retrieves the form field at the current input position and inspects it by using FormField.FormFieldDialog.

CheckFormField field = new(false) { Name = "AcceptTerms" };
textControl.FormFields.Add(field);
FormField formField = textControl.FormFields.GetItem();

var result = formField.FormFieldDialog();
Console.WriteLine($"Form Field Dialog result: {result}");