# TextFrame.Comments Property

> Gets a collection of all comments in the text frame. The property's value is an object of the type CommentCollection.

- **Product:** TX Text Control .NET for WPF
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 30.0
- **Namespace:** `TXTextControl`
- **Package:** `TXTextControl.TextControl.WPF.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 WPF > Reference > TXTextControl > TextFrame.Comments Property
- **458 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/textframe/comments-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/textframe/comments-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/textframe/comments-property/llms-full.txt

---

### Description

Gets a collection of all comments in the text frame. The property's value is an object of the type [CommentCollection](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/commentcollection/llms-full.txt).

### Syntax

```csharp
public CommentCollection Comments { get; }
```

```vbnet
Public ReadOnly Property Comments As CommentCollection
```

### Examples

The following example applies bold formatting through the text frame's selection by using `TextFrame.Comments`.

```csharp
Selection formattedSelection = textFrame.Selection;
formattedSelection.Bold = true;
textFrame.Selection = formattedSelection;

foreach (CommentedText commentedText in textFrame.Comments)
{
    Console.WriteLine(commentedText.Active);
}
```

```vbnet
Dim formattedSelection As Selection = textFrame.Selection
formattedSelection.Bold = True
textFrame.Selection = formattedSelection

For Each commentedText As CommentedText In textFrame.Comments
    Console.WriteLine(commentedText.Active)
Next
```

### Limitations

Read only.

---

## Nearby

- **Previous:** [TextFrame.Charts Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/textframe/charts-property/llms-full.txt)
- **Next:** [TextFrame Constructor](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/textframe/constructor/llms-full.txt)
