# Sidebar.CommentsItem Enumeration

> Each CommentsItem represents an item in a predefined Comments control. The corresponding string of a CommentsItem is the same as the item's Name property. The CommentsItem enumeration can be used with the Sidebar.FindItem method to get the item and manipulate it.

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Enumeration
- **Introduced:** 26.0
- **Namespace:** `TXTextControl.Windows.Forms`
- **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.Windows.Forms > Sidebar.CommentsItem Enumeration
- **757 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms/sidebar/commentsitem-enumeration/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms/sidebar/commentsitem-enumeration/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms/sidebar/commentsitem-enumeration/llms-full.txt

---

### Description

Each CommentsItem represents an item in a [predefined Comments](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms/sidebar/contentlayout-property/llms-full.txt) [control](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms/sidebar/content-property/llms-full.txt). The corresponding string of a CommentsItem is the same as the item's Name property. The CommentsItem enumeration can be used with the [Sidebar.FindItem](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms/sidebar/finditem-method/llms-full.txt) method to get the item and manipulate it.

### Syntax

```csharp
public enum Sidebar.CommentsItem
```

```vbnet
Public Enum Sidebar.CommentsItem
```

### Members

| Member | Value | Description |
|---|---|---|
| TXITEM\_CommentsCount | 0 | Identifies the Comments Count label. |
| TXITEM\_CommentsRefresh | 1 | Identifies the Comments Refresh button. |
| TXITEM\_CommentsViewer | 2 | Identifies the Comments overview. |
| TXITEM\_DeleteComment | 3 | Identifies the Comments Delete button. |
| TXITEM\_EditComment | 4 | Identifies the Comments Edit button. |
| TXITEM\_ReplyComment | 5 | Identifies the Comments Reply button. |
| TXITEM\_Close | 6 | Not described in the reference. |

### Examples

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

```csharp
TXTextControl.Windows.Forms.Sidebar.CommentsItem value = TXTextControl.Windows.Forms.Sidebar.CommentsItem.TXITEM_CommentsCount;
Console.WriteLine($"Using Comments Item: {value}");
```

```vbnet
Dim value As TXTextControl.Windows.Forms.Sidebar.CommentsItem = TXTextControl.Windows.Forms.Sidebar.CommentsItem.TXITEM_CommentsCount
Console.WriteLine($"Using Comments Item: {value}")
```

---

## Nearby

- **Previous:** [Sidebar.AboutItem Enumeration](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms/sidebar/aboutitem-enumeration/llms-full.txt)
- **Next:** [Sidebar.ConditionalInstructionsItem Enumeration](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms/sidebar/conditionalinstructionsitem-enumeration/llms-full.txt)
