TX Text Control .NET for Windows Forms

Size Property

Property|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

Gets or sets the size of the canvas.

Syntax

public Size Size { get; set; }

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.

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