AutoSize Constructor
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. Core. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesCore. dll
- Also in
TXTextControl.asTextControl. ASP. SDK TXTextControl.dll
Description
Initializes a new instance of the AutoSize class. The constructor offers the individual setting of all features.
Syntax
AutoSize(AutoSizeDirection, AutoSizeDirection, Size, Size)
Initializes a new instance of the AutoSize class. The constructor offers the individual setting of all features.
public AutoSize(AutoSizeDirection expand, AutoSizeDirection shrink, Size maxSize, Size minSize);Public Sub New(expand As AutoSizeDirection, shrink As AutoSizeDirection, maxSize As Size, minSize As Size)| Parameter | Description |
|---|---|
| expand | Specifies possible directions for expanding the control. It can be one of the AutoSizeDirection values. |
| shrink | Specifies possible directions for shrinking the control. It can be one of the AutoSizeDirection values. |
| maxSize | Specifies the maximum size, in twips, for expanding the control. |
| minSize | Specifies the minimum size, in twips, for shrinking the control. |
AutoSize()
public AutoSize();Public Sub New()Examples
The following example creates an Auto Size instance and configures its auto expand setting for a document workflow.
AutoSize autoSize = new();
autoSize.AutoExpand = AutoSizeDirection.Vertical;Dim autoSize As New AutoSize()
autoSize.AutoExpand = AutoSizeDirection.Vertical