ManageConditionalInstructionsDialog Method
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WinForms. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesWindows. Forms. dll
Description
Opens a dialog box to add, edit or delete Conditional Instructions inside the document.
Syntax
public System.Windows.Forms.DialogResult ManageConditionalInstructionsDialog();Public Function ManageConditionalInstructionsDialog() As System.Windows.Forms.DialogResultReturn Value
The return value can be one of the following values:
| Result | Meaning |
|---|---|
| DialogResult.OK | The dialog has been left with the OK button and any changes to the document's Conditional Instructions were adopted. |
| DialogResult.Cancel | The dialog has been left with the Cancel button. |
| DialogResult.Abort | The 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}");Dim 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.