Gets or sets possible directions for expanding the control.

Syntax

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

Members

Member 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 the AutoExpand property to set the direction of the expanding 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)