# TXDrawingCore.Load Method

> Loads shapes data into the canvas from a specified 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.Load Method
- **380 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-drawing/txdrawingcore/load-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-drawing/txdrawingcore/load-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-drawing/txdrawingcore/load-method/llms-full.txt

---

### Description

Loads [shapes](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-drawing/txdrawingcore/shapes-property/llms-full.txt) data into the canvas from a specified object of type `System.IO.Stream`.

### Syntax

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

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

### Parameters

| Parameter | Description |
|---|---|
| stream | Specifies an object of type `System.IO.Stream` the data is loaded from. The data is loaded from the stream's current position. |

### Examples

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

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

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

---

## Nearby

- **Previous:** [TXDrawingCore.IsCanvasVisible Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-drawing/txdrawingcore/iscanvasvisible-property/llms-full.txt)
- **Next:** [TXDrawingCore.Paste Method](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-drawing/txdrawingcore/paste-method/llms-full.txt)
