TX Text Control .NET for Windows Forms

ManageConditionalInstructionsDialog Method

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

Description

Opens a dialog box to add, edit or delete Conditional Instructions inside the document.

Syntax

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

Return Value

The return value can be one of the following values:

ResultMeaning
DialogResult.OKThe dialog has been left with the OK button and any changes to the document's Conditional Instructions were adopted.
DialogResult.CancelThe dialog has been left with the Cancel button.
DialogResult.AbortThe dialog has not been opened.

Examples

The following example opens the manage conditional instructions dialog for the text control.

var result = textControl.ManageConditionalInstructionsDialog();
Console.WriteLine($"Manage Conditional Instructions Dialog result: {result}");

Limitations

The dialog cannot be opened, if the TextControl.IsFormFieldValidationEnabled is set to false. In this case the method returns DialogResult.Abort.