Gets or sets possible directions for expanding the control.
public AutoSizeDirection AutoExpand { get; set; }
Public Property AutoExpand() As AutoSizeDirection
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. |
The following example uses the Auto
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)