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