Panel.AutoSize Property  
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets a value that indicates whether the control resizes based on its contents.
public:
 virtual property bool AutoSize { bool get(); void set(bool value); };
	[System.ComponentModel.Browsable(true)]
public override bool AutoSize { get; set; }
	[<System.ComponentModel.Browsable(true)>]
member this.AutoSize : bool with get, set
	Public Overrides Property AutoSize As Boolean
	Property Value
true if the control automatically resizes based on its contents; otherwise, false. The default is true.
- Attributes