# TXDrawingCore.Save Method

> Saves the shapes data to the given object of type System.IO.Stream.

- **Product:** TX Text Control .NET for WPF
- **Section:** Reference
- **Kind:** Method
- **Introduced:** 33.0
- **Namespace:** `TXTextControl.Drawing`
- **Package:** `TXTextControl.TextControl.WPF.SDK` (assembly `TXDrawing.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXDrawing.dll` from the setup
- **Path:** TX Text Control .NET for WPF > Reference > TXTextControl.Drawing > TXDrawingCore.Save Method
- **366 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-drawing/txdrawingcore/save-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-drawing/txdrawingcore/save-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-drawing/txdrawingcore/save-method/llms-full.txt

---

### Description

Saves the [shapes](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-drawing/txdrawingcore/shapes-property/llms-full.txt) data to the given object of type `System.IO.Stream`.

### Syntax

```csharp
public void Save(Stream stream);
```

```vbnet
Public Sub Save(stream As Stream)
```

### Parameters

| Parameter | Description |
|---|---|
| stream | Specifies an object of type `System.IO.Stream` the data is saved to. |

### Examples

The following example saves document content in a specified format. The created object is then available to the surrounding document workflow.

```csharp
tXDrawingCore.Save(new System.IO.MemoryStream());
Console.WriteLine("TXDrawing Core is ready for use.");
```

```vbnet
tXDrawingCore.Save(New System.IO.MemoryStream())
Console.WriteLine("TXDrawing Core is ready for use.")
```

---

## Nearby

- **Previous:** [TXDrawingCore.Redo Method](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-drawing/txdrawingcore/redo-method/llms-full.txt)
- **Next:** [TXDrawingCore.SelectAll Method](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-drawing/txdrawingcore/selectall-method/llms-full.txt)
