Gets or sets a value indicating whether the size of the control automatically adjusts when the font assigned to the control is changed is changed.
[Visual Basic] Overridable Public Property AutoSize As Boolean [C#] public bool AutoSize {virtual get; virtual set;} [C++] public: __property virtual bool get_AutoSize(); public: __property virtual void set_AutoSize(bool); [JScript] public function get AutoSize() : Boolean; public function set AutoSize(Boolean);
true if the size of the control automatically adjusts when the font is changed; otherwise false. The default is true.
Multiline text box controls ignore this property setting. When this property is set to true, the text box control resizes its height based on the size of the font assigned to the control. You can use this property to ensure that the user can read text assigned to the control regardless of the font.
TextBoxBase Class | TextBoxBase Members | System.WinForms Namespace