CommentsItem Enumeration
- Namespace
TXTextControl.Windows. Forms
- Package
TXTextControl.from the private NuGet feed or Text Control Offline PackagesTextControl. WinForms. SDK
- Assembly
TXTextControl.Windows. Forms. dll
- Install
dotnet add package TXTextControl..NET 8 and later. For .NET Framework, referenceTextControl. WinForms. SDK TXTextControl.from the setup.Windows. Forms. dll
Description
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.
Syntax
public enum Sidebar.CommentsItemPublic Enum Sidebar.CommentsItemMembers
| 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.
TXTextControl.Windows.Forms.Sidebar.CommentsItem value = TXTextControl.Windows.Forms.Sidebar.CommentsItem.TXITEM_CommentsCount;
Console.WriteLine($"Using Comments Item: {value}");Dim value As TXTextControl.Windows.Forms.Sidebar.CommentsItem = TXTextControl.Windows.Forms.Sidebar.CommentsItem.TXITEM_CommentsCount
Console.WriteLine($"Using Comments Item: {value}")