AutoControlSize Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WinForms. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesWindows. Forms. dll
Description
Gets or sets values that enable automatic expansion or shrinking of a Text Control's width or height depending on the currently contained text. These features are only possible, if the TextControl.ViewMode property has been set to SimpleControl. The property value is an object of the type AutoSize.
Syntax
public AutoSize AutoControlSize { get; set; }Public Property AutoControlSize As AutoSizeExamples
The following example uses TextControl.AutoControlSize to configure auto control size as part of the text control workflow. The change is then applied to the active document or user interface.
textControl.AutoControlSize = new AutoSize();
textControl.Update();textControl.AutoControlSize = New AutoSize()
textControl.Update()