TX Text Control .NET Server

AutoShrink 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 shrinking the control.

Syntax

public AutoSizeDirection AutoShrink { get; set; }

Members

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