# CommentedText.Comment Property

> Gets or sets a string which is the comment.

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

---

### Description

Gets or sets a string which is the comment.

### Syntax

```csharp
public string Comment { get; set; }
```

```vbnet
Public Property Comment As String
```

### Examples

The following example attaches a reviewer comment to selected contract text by using `CommentedText.Comment`.

```csharp
textControl.Text = "Payment is due within 30 days.";
textControl.Select(0, textControl.Text.Length);
CommentedText commentedText = new("Verify the payment term.");
textControl.Comments.Add(commentedText);

commentedText.Comment = "Quarterly report";
if (!string.IsNullOrWhiteSpace(commentedText.Comment))
{
    Console.WriteLine($"Comment: {commentedText.Comment}");
}
```

```vbnet
textControl.Text = "Payment is due within 30 days."
textControl.Select(0, textControl.Text.Length)
Dim commentedText As New CommentedText("Verify the payment term.")
textControl.Comments.Add(commentedText)

commentedText.Comment = "Quarterly report"
If Not String.IsNullOrWhiteSpace(commentedText.Comment) Then
    Console.WriteLine($"Comment: {commentedText.Comment}")
End If
```

---

## Nearby

- **Previous:** [CommentedText.Active Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/commentedtext/active-property/llms-full.txt)
- **Next:** [CommentedText Constructor](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/commentedtext/constructor/llms-full.txt)
