# ChartFrame.Chart Property

> Gets the chart control associated with the chart frame. It must be of the type System.Windows.Forms.DataVisualization.Charting.Chart.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 18.0
- **Namespace:** `TXTextControl.DataVisualization`
- **Package:** `TXTextControl.TextControl.Core.SDK` (assembly `TXTextControl.Core.dll`, from the private NuGet feed or Text Control Offline Packages)
- **Package:** `TXTextControl.TextControl.ASP.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 Server > Reference > TXTextControl.DataVisualization > ChartFrame.Chart Property
- **293 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-datavisualization/chartframe/chart-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-datavisualization/chartframe/chart-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-datavisualization/chartframe/chart-property/llms-full.txt

---

### Description

Gets the chart control associated with the chart frame. It must be of the type System.Windows.Forms.DataVisualization.Charting.Chart.

### Syntax

```csharp
public Component Chart { get; }
```

```vbnet
Public ReadOnly Property Chart As Component
```

### Examples

The following example includes the chart value in application diagnostics. The created object is then available to the surrounding document workflow.

```csharp
Console.WriteLine($"Chart: {chartFrame.Chart}");
Console.WriteLine("Chart Frame is ready for use.");
```

```vbnet
Console.WriteLine($"Chart: {chartFrame.Chart}")
Console.WriteLine("Chart Frame is ready for use.")
```

### Limitations

Read only.

---

## Nearby

- **Previous:** [ChartFrame.AddUndoUnit Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-datavisualization/chartframe/addundounit-method/llms-full.txt)
- **Next:** [ChartFrame Constructor](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-datavisualization/chartframe/constructor/llms-full.txt)
