Gets or sets possible directions for shrinking the control.
public AutoSizeDirection AutoShrink { get; set; }
Public Property AutoShrink() As AutoSizeDirection
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. |
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)