TX Text Control .NET for Windows Forms

CommentsItem Enumeration

Enumeration|Introduced in 26.0
Namespace
TXTextControl.Windows.Forms
Package
TXTextControl.TextControl.WinForms.SDK from the private NuGet feed or Text Control Offline Packages
Assembly
TXTextControl.Windows.Forms.dll
Install
dotnet add package TXTextControl.TextControl.WinForms.SDK .NET 8 and later. For .NET Framework, reference TXTextControl.Windows.Forms.dll from the setup.

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.CommentsItem

Members

MemberValueDescription
TXITEM_CommentsCount0Identifies the Comments Count label.
TXITEM_CommentsRefresh1Identifies the Comments Refresh button.
TXITEM_CommentsViewer2Identifies the Comments overview.
TXITEM_DeleteComment3Identifies the Comments Delete button.
TXITEM_EditComment4Identifies the Comments Edit button.
TXITEM_ReplyComment5Identifies the Comments Reply button.
TXITEM_Close6Not 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}");