DialogResult Enumeration
- Namespace
TXTextControl
- Package
TXTextControl.from the private NuGet feed or Text Control Offline PackagesTextControl. WPF. SDK
- Assembly
TXTextControl.dll
- Install
dotnet add package TXTextControl..NET 8 and later. For .NET Framework, referenceTextControl. WPF. SDK TXTextControl.from the setup.dll
Description
Specifies identifiers to indicate the return value of a dialog box.
Syntax
public enum Selection.DialogResultPublic Enum Selection.DialogResultMembers
| Member | Value | Description |
|---|---|---|
| Cancel | 1 | Specifies that the dialog box has been canceled. |
| None | 0 | Specifies that the dialog box has been left with the Escape key. |
| OK | 2 | Specifies that the dialog box has been left with OK. |
Examples
The following example selects the Cancel value from the Dialog Result enumeration and uses it as a documented workflow choice.
Selection.DialogResult value = Selection.DialogResult.Cancel;
Console.WriteLine($"Using Dialog Result: {value}");Dim value As Selection.DialogResult = Selection.DialogResult.Cancel
Console.WriteLine($"Using Dialog Result: {value}")