# TXDrawingCore Constructor

> Initializes a new instance of the TXDrawingCore class.

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

---

### Description

Initializes a new instance of the [TXDrawingCore](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-drawing/txdrawingcontrol/llms-full.txt) class.

### Syntax

#### TXDrawingCore()

Initializes a new instance of the [TXDrawingCore](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-drawing/txdrawingcore/llms-full.txt) class with a canvas size of 1134 x 1134 twips.

```csharp
public TXDrawingCore();
```

```vbnet
Public Sub New()
```

#### TXDrawingCore(int, int)

Initializes a new instance of the [TXDrawingCore](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-drawing/txdrawingcore/llms-full.txt) class with a specific canvas size.

```csharp
public TXDrawingCore(int width, int height);
```

```vbnet
Public Sub New(width As Integer, height As Integer)
```

| Parameter | Description |
|---|---|
| width | The width of the canvas in twips. |
| height | The height of the canvas in twips. |

### Examples

The following example creates a TXDrawing Core instance and configures its back color setting for a document workflow.

```csharp
TXTextControl.Drawing.TXDrawingCore tXDrawingCore = new();
tXDrawingCore.BackColor = System.Drawing.Color.LightSteelBlue;
```

```vbnet
Dim tXDrawingCore As New TXTextControl.Drawing.TXDrawingCore()
tXDrawingCore.BackColor = System.Drawing.Color.LightSteelBlue
```

---

## Nearby

- **Previous:** [TXDrawingCore.ClearUndo Method](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-drawing/txdrawingcore/clearundo-method/llms-full.txt)
- **Next:** [TXDrawingCore.Copy Method](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-drawing/txdrawingcore/copy-method/llms-full.txt)
