# CommentsDialog.DialogItem Enumeration

> Each DialogItem represents an item in a WPF.CommentsDialog dialog box. The corresponding string of a DialogItem is the same as the item's Name property. The string can be used with the FrameworkElement.FindName method to get the item and manipulate, move or delete it.

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

---

### Description

Each DialogItem represents an item in a [WPF.CommentsDialog](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/commentsdialog/llms-full.txt) dialog box. The corresponding string of a DialogItem is the same as the item's Name property. The string can be used with the `FrameworkElement.FindName` method to get the item and manipulate, move or delete it.

### Syntax

```csharp
public enum CommentsDialog.DialogItem
```

```vbnet
Public Enum CommentsDialog.DialogItem
```

### Members

| Member | Value | Description |
|---|---|---|
| TXITEM\_CommentsCount | 0 | Identifies the comments count label. |
| TXITEM\_CommentsRefresh | 1 | Identifies the refresh comments button. |
| TXITEM\_CommentsViewer | 2 | Identifies the comments viewer. |
| TXITEM\_DeleteComment | 3 | Identifies the delete comment button. |
| TXITEM\_DeleteAllComments | 4 | Identifies the delete all comments button. |
| TXITEM\_EditComment | 5 | Identifies the edit comment button. |
| TXITEM\_ReplyComment | 6 | Identifies the reply comment button. |
| TXITEM\_Close | 7 | Identifies the close button. |

### Examples

The following example selects the TXITEM\_Comments Count value from the Dialog Item enumeration and uses it as a documented workflow choice.

```csharp
TXTextControl.WPF.CommentsDialog.DialogItem value = TXTextControl.WPF.CommentsDialog.DialogItem.TXITEM_CommentsCount;
Console.WriteLine($"Using Dialog Item: {value}");
```

```vbnet
Dim value As TXTextControl.WPF.CommentsDialog.DialogItem = TXTextControl.WPF.CommentsDialog.DialogItem.TXITEM_CommentsCount
Console.WriteLine($"Using Dialog Item: {value}")
```

---

## Nearby

- **Previous:** [CommentsDialog Constructor](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/commentsdialog/constructor/llms-full.txt)
- **Next:** [DeleteBookmarksDialog Class](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/deletebookmarksdialog/llms-full.txt)
