NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

TextBoxBase.AutoSize

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

Property Value

true if the size of the control automatically adjusts when the font is changed; otherwise false. The default is true.

Remarks

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.

See Also

TextBoxBase Class | TextBoxBase Members | System.WinForms Namespace