TX Text Control .NET for Windows Forms

ResetAutoControlSize Method

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

Description

Resets the AutoControlSize property to its default values. The default of the AutoControlSize property is a TextControl object that does not automatically expand or shrink its width or height.

Syntax

public void ResetAutoControlSize();

Examples

The following example restores the auto control size setting on the text control to its default. The created object is then available to the surrounding document workflow.

textControl.ResetAutoControlSize();
Console.WriteLine("Text Control is ready for use.");