TX Text Control .NET for Windows Forms

AutoSizeDirection Enumeration

Enumeration
Namespace
TXTextControl
Package
TXTextControl.TextControl.WinForms.SDK from the private NuGet feed or Text Control Offline Packages
Assembly
TXTextControl.dll
Install
dotnet add package TXTextControl.TextControl.WinForms.SDK .NET 8 and later. For .NET Framework, reference TXTextControl.dll from the setup.

Description

Determines values for the AutoSize.AutoExpand and AutoSize.AutoShrink properties. The enumeration contains the following values:

Syntax

public enum AutoSizeDirection

Members

MemberValueDescription
None1The control does not shrink automatically.
Vertical2The control automatically shrinks vertically.
Horizontal3The control automatically shrinks horizontally.
Both4The control automatically shrinks in both directions.

Examples

The following example selects the Vertical value from the Auto Size Direction enumeration and uses it as a documented workflow choice.

AutoSizeDirection value = AutoSizeDirection.Vertical;
Console.WriteLine($"Using Auto Size Direction: {value}");