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!

Label.AutoSize

Gets or sets a value indicating whether the control is automatically resized to fit its contents.

[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 control adjusts its width to closely fit its contents; otherwise, false. The default is false.

See Also

Label Class | Label Members | System.WinForms Namespace | Text