TX Text Control .NET for Windows Forms

TXDrawingCore Constructor

Constructor|Introduced in 33.0
Namespace
TXTextControl.Drawing
Package
TXTextControl.TextControl.WinForms.SDK as TXDrawing.dll from the private NuGet feed or Text Control Offline Packages

Description

Initializes a new instance of the TXDrawingCore class.

Syntax

TXDrawingCore()

Initializes a new instance of the TXDrawingCore class with a canvas size of 1134 x 1134 twips.

public TXDrawingCore();

TXDrawingCore(int, int)

Initializes a new instance of the TXDrawingCore class with a specific canvas size.

public TXDrawingCore(int width, int height);
ParameterDescription
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.

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