AutoSizeDirection Enumeration
- Namespace
TXTextControl
- Package
TXTextControl.from the private NuGet feed or Text Control Offline PackagesTextControl. WPF. SDK
- Assembly
TXTextControl.dll
- Install
dotnet add package TXTextControl..NET 8 and later. For .NET Framework, referenceTextControl. WPF. SDK TXTextControl.from the setup.dll
Description
Determines values for the AutoSize.AutoExpand and AutoSize.AutoShrink properties. The enumeration contains the following values:
Syntax
public enum AutoSizeDirectionPublic Enum AutoSizeDirectionMembers
| Member | Value | Description |
|---|---|---|
| None | 1 | The control does not shrink automatically. |
| Vertical | 2 | The control automatically shrinks vertically. |
| Horizontal | 3 | The control automatically shrinks horizontally. |
| Both | 4 | The 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}");Dim value As AutoSizeDirection = AutoSizeDirection.Vertical
Console.WriteLine($"Using Auto Size Direction: {value}")