AutoShrink Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WPF. SDK TXTextControl.from the private NuGet feed or Text Control Offline Packagesdll
Description
Gets or sets possible directions for shrinking the control.
Syntax
public AutoSizeDirection AutoShrink { get; set; }Public Property AutoShrink As AutoSizeDirectionMembers
| Value | Description |
|---|---|
| None | The control does not shrink automatically. |
| Vertical | The control automatically shrinks vertically. |
| Horizontal | The control automatically shrinks horizontally. |
| Both | The control automatically shrinks in both directions. |
Examples
The following example uses AutoSize.AutoShrink to configure auto shrink as part of the auto size workflow. The configured value is checked before the workflow continues.
autoSize.AutoShrink = AutoSizeDirection.Vertical;
Console.WriteLine($"Auto Shrink used by Auto Size: {autoSize.AutoShrink}");autoSize.AutoShrink = AutoSizeDirection.Vertical
Console.WriteLine($"Auto Shrink used by Auto Size: {autoSize.AutoShrink}")