TX Text Control .NET for Windows Forms

AutoSize Constructor

Constructor|Introduced in 11.0
Namespace
TXTextControl
Package
TXTextControl.TextControl.WinForms.SDK as TXTextControl.dll from the private NuGet feed or Text Control Offline Packages

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);
ParameterDescription
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();

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;