TX Text Control .NET for Windows Forms

AutoSize Property

Property|Introduced in 23.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 a value indicating whether the shape is automatically resized with the TX Drawing Control. The default value is false.

Syntax

public bool AutoSize { get; set; }

Examples

The following example uses Shape.AutoSize to configure auto size as part of the shape workflow. The configured value is checked before the workflow continues.

shape.AutoSize = true;
if (shape.AutoSize)
{
    Console.WriteLine("Shape: Auto Size is enabled.");
}