TX Text Control .NET Server

AutoExpand Property

Property|Introduced in 11.0
Namespace
TXTextControl
Package
TXTextControl.TextControl.Core.SDK as TXTextControl.Core.dll from the private NuGet feed or Text Control Offline Packages
Also in
TXTextControl.TextControl.ASP.SDK as TXTextControl.dll

Description

Gets or sets possible directions for expanding the control.

Syntax

public AutoSizeDirection AutoExpand { get; set; }

Members

ValueDescription
NoneThe control does not expand automatically.
VerticalThe control automatically expands vertically.
HorizontalThe control automatically expands horizontally.
BothThe 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}");