TX Text Control .NET for WPF

ManageConditionalInstructionsDialog Method

Method|Introduced in 28.0
Namespace
TXTextControl.WPF
Package
TXTextControl.TextControl.WPF.SDK as TXTextControl.WPF.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 bool? ManageConditionalInstructionsDialog();

Return Value

The return value can be one of the following values:

ResultMeaning
trueThe dialog has been left with the OK button and any changes to the document's Conditional Instructions were adopted.
falseThe dialog has been left with the Cancel button.
nullThe 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 null.