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);
true if the control adjusts its width to closely fit its contents; otherwise, false. The default is false.
Label Class | Label Members | System.WinForms Namespace | Text