# DrawingFrame.SaveMode Property

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

- **Product:** TX Text Control .NET for WPF
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 23.0
- **Namespace:** `TXTextControl.DataVisualization`
- **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.DataVisualization > DrawingFrame.SaveMode Property
- **422 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-datavisualization/drawingframe/savemode-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-datavisualization/drawingframe/savemode-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-datavisualization/drawingframe/savemode-property/llms-full.txt

---

### Description

Determines whether the drawing's bitmap image is stored through its binary data or through a file reference. By default a drawing'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-wpf/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 `DrawingFrame.SaveMode` to control how the drawing frame is stored during document export. The change is then applied to the active document or user interface.

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

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

---

## Nearby

- **Previous:** [DrawingFrame.Refresh Method](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-datavisualization/drawingframe/refresh-method/llms-full.txt)
- **Next:** [TXTextControl.DocumentServer namespace](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver/llms-full.txt)
