# ChartFrame.SaveMode Property

> Determines whether the chart's image is stored through its binary data or through a file reference. By default a chart's image is stored with its binary data.

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 18.0
- **Namespace:** `TXTextControl.DataVisualization`
- **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.DataVisualization > ChartFrame.SaveMode Property
- **419 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-datavisualization/chartframe/savemode-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-datavisualization/chartframe/savemode-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-datavisualization/chartframe/savemode-property/llms-full.txt

---

### Description

Determines whether the chart's image is stored through its binary data or through a file reference. By default a chart's image is stored with its binary data.

### Syntax

```csharp
public ImageSaveMode SaveMode { get; set; }
```

```vbnet
Public Property SaveMode As ImageSaveMode
```

### Members

| Value | Description |
|---|---|
| Auto | The image is saved as specified with the [SaveSettings.ImageSaveMode](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/savesettings/imagesavemode-property/llms-full.txt) property. |
| SaveAsData | The image is saved in a Text Control document with its complete binary data. |
| SaveAsFileReference | The image is saved in a Text Control document through a file reference. The technical article Loading and Saving Images describes where newly created image files are stored. |

### Examples

The following example uses `ChartFrame.SaveMode` to control how the chart frame is stored during document export. The change is then applied to the active document or user interface.

```csharp
chartFrame.SaveMode = ImageSaveMode.Auto;
chartFrame.Refresh();
```

```vbnet
chartFrame.SaveMode = ImageSaveMode.Auto
chartFrame.Refresh()
```

---

## Nearby

- **Previous:** [ChartFrame.Refresh Method](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-datavisualization/chartframe/refresh-method/llms-full.txt)
- **Next:** [DrawingCollection Class](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-datavisualization/drawingcollection/llms-full.txt)
