# CommentsDialog.DialogItem Enumeration

> Each DialogItem represents an item in a CommentsDialog dialog box. The corresponding string of a DialogItem is the same as the item's Name property. The DialogItem enumeration can be used with the CommentsDialog.FindItem method to get the item and manipulate it.

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

---

### Description

Each DialogItem represents an item in a [CommentsDialog](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/commentsdialog/llms-full.txt) dialog box. The corresponding string of a DialogItem is the same as the item's Name property. The DialogItem enumeration can be used with the [CommentsDialog.FindItem](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/commentsdialog/finditem-method/llms-full.txt) method to get the item and manipulate 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
CommentsDialog.DialogItem value = CommentsDialog.DialogItem.TXITEM_CommentsCount;
Console.WriteLine($"Using Dialog Item: {value}");
```

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

---

## Nearby

- **Previous:** [CommentsDialog Constructor](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/commentsdialog/constructor/llms-full.txt)
- **Next:** [CommentsDialog.FindItem Method](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/commentsdialog/finditem-method/llms-full.txt)
