# TXDrawingCore.Size Property

> Gets or sets the size of the canvas.

- **Product:** TX Text Control .NET for WPF
- **Section:** Reference
- **Kind:** Property
- **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.Size Property
- **335 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-drawing/txdrawingcore/size-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-drawing/txdrawingcore/size-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-drawing/txdrawingcore/size-property/llms-full.txt

---

### Description

Gets or sets the size of the canvas.

### Syntax

```csharp
public Size Size { get; set; }
```

```vbnet
Public Property Size As Size
```

### Examples

The following example uses `TXDrawingCore.Size` to configure size as part of the txdrawing core workflow. The configured value is checked before the workflow continues.

```csharp
tXDrawingCore.Size = new System.Drawing.Size(600, 400);
Console.WriteLine($"Size used by TXDrawing Core: {tXDrawingCore.Size}");
```

```vbnet
tXDrawingCore.Size = New System.Drawing.Size(600, 400)
Console.WriteLine($"Size used by TXDrawing Core: {tXDrawingCore.Size}")
```

---

## Nearby

- **Previous:** [TXDrawingCore.ShapeSized Event](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-drawing/txdrawingcore/shapesized-event/llms-full.txt)
- **Next:** [TXDrawingCore.SizeToContent Method](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-drawing/txdrawingcore/sizetocontent-method/llms-full.txt)
