# ServerTextControl.Charts Property

> Gets a collection of all charts in a document. The property value is an object of the type DataVisualization.ChartCollection. The collection can be used to get or to alter a chart's attributes and to add charts to or to remove charts from a document.

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

---

### Description

Gets a collection of all charts in a document. The property value is an object of the type [DataVisualization.ChartCollection](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-datavisualization/chartcollection/llms-full.txt). The collection can be used to get or to alter a chart's attributes and to add charts to or to remove charts from a document.

### Syntax

```csharp
public ChartCollection Charts { get; }
```

```vbnet
Public ReadOnly Property Charts As ChartCollection
```

### Examples

The following example iterates through the charts collection and processes each chart frame.

```csharp
foreach (TXTextControl.DataVisualization.ChartFrame chartFrame in textControl.Charts)
{
    chartFrame.DescriptiveText = "Quarterly results";
}
```

```vbnet
For Each chartFrame As TXTextControl.DataVisualization.ChartFrame In textControl.Charts
    chartFrame.DescriptiveText = "Quarterly results"
Next
```

### Limitations

Runtime only.

Read only.

---

## Nearby

- **Previous:** [ServerTextControl.ChartDeleted Event](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/servertextcontrol/chartdeleted-event/llms-full.txt)
- **Next:** [ServerTextControl.Clear Method](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/servertextcontrol/clear-method/llms-full.txt)
