# Selection.DialogResult Enumeration

> Specifies identifiers to indicate the return value of a dialog box.

- **Product:** TX Text Control .NET for WPF
- **Section:** Reference
- **Kind:** Enumeration
- **Namespace:** `TXTextControl`
- **Package:** `TXTextControl.TextControl.WPF.SDK` (assembly `TXTextControl.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.dll` from the setup
- **Path:** TX Text Control .NET for WPF > Reference > TXTextControl > Selection.DialogResult Enumeration
- **439 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/selection/dialogresult-enumeration/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/selection/dialogresult-enumeration/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/selection/dialogresult-enumeration/llms-full.txt

---

### Description

Specifies identifiers to indicate the return value of a dialog box.

### Syntax

```csharp
public enum Selection.DialogResult
```

```vbnet
Public Enum Selection.DialogResult
```

### Members

| 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.

```csharp
Selection.DialogResult value = Selection.DialogResult.Cancel;
Console.WriteLine($"Using Dialog Result: {value}");
```

```vbnet
Dim value As Selection.DialogResult = Selection.DialogResult.Cancel
Console.WriteLine($"Using Dialog Result: {value}")
```

---

## Nearby

- **Previous:** [Selection.DecreaseIndent Method](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/selection/decreaseindent-method/llms-full.txt)
- **Next:** [Selection.FontName Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/selection/fontname-property/llms-full.txt)
