# 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 FrameworkElement.FindName method to get the item and manipulate it.

- **Product:** TX Text Control .NET for WPF
- **Section:** Reference
- **Kind:** Enumeration
- **Introduced:** 26.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 > Sidebar.CommentsItem Enumeration
- **714 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/sidebar/commentsitem-enumeration/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/sidebar/commentsitem-enumeration/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/sidebar/commentsitem-enumeration/llms-full.txt

---

### Description

Each CommentsItem represents an item in a [predefined Comments](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/sidebar/contentlayout-property/llms-full.txt) [control](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/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 `FrameworkElement.FindName` 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.WPF.Sidebar.CommentsItem value = TXTextControl.WPF.Sidebar.CommentsItem.TXITEM_CommentsCount;
Console.WriteLine($"Using Comments Item: {value}");
```

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

---

## Nearby

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