Gets or sets possible directions for shrinking the control.

Syntax

public AutoSizeDirection AutoShrink { get; set; }
Public Property AutoShrink() As AutoSizeDirection

Members

Member 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 the AutoShrink property to set the direction of the shrinking control to Horizontal.

textControl1.ViewMode = TXTextControl.ViewMode.SimpleControl;
textControl1.AutoControlSize.AutoExpand = TXTextControl.AutoSizeDirection.Horizontal;
textControl1.AutoControlSize.AutoShrink = TXTextControl.AutoSizeDirection.Horizontal;
textControl1.AutoControlSize.MinSize = new System.Drawing.Size(100, 100);
TextControl1.ViewMode = TXTextControl.ViewMode.SimpleControl
TextControl1.AutoControlSize.AutoExpand = TXTextControl.AutoSizeDirection.Horizontal
TextControl1.AutoControlSize.AutoShrink = TXTextControl.AutoSizeDirection.Horizontal
TextControl1.AutoControlSize.MinSize = New System.Drawing.Size(100, 100)