ButtonBase.AutoSize Property


Gets or sets a value that indicates whether the control resizes based on its contents.

 virtual property bool AutoSize { bool get(); void set(bool value); };
public override bool AutoSize { get; set; }
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.


Applies to