# DrawingFrame Constructor

> Initializes a new instance of the DrawingFrame class.

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

---

### Description

Initializes a new instance of the DrawingFrame class.

### Syntax

```csharp
public DrawingFrame(object drawing);
```

```vbnet
Public Sub New(drawing As Object)
```

### Parameters

| Parameter | Description |
|---|---|
| drawing | Specifies the drawing control associated with the drawing frame. It must be of the type `TXTextControl.Drawing.TXDrawingControl` or `TXTextControl.WPF.Drawing.TXDrawingControl`. |

### Examples

The following example creates a Drawing Frame instance and configures its export compression quality setting for a document workflow.

```csharp
TXTextControl.DataVisualization.DrawingFrame drawingFrame = new("Approved");
drawingFrame.ExportCompressionQuality = 90;
```

```vbnet
Dim drawingFrame As New TXTextControl.DataVisualization.DrawingFrame("Approved")
drawingFrame.ExportCompressionQuality = 90
```

---

## Nearby

- **Previous:** [DrawingFrame.AddUndoUnit Method](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-datavisualization/drawingframe/addundounit-method/llms-full.txt)
- **Next:** [DrawingFrame.Drawing Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-datavisualization/drawingframe/drawing-property/llms-full.txt)
