Edit

Share via


UserControl.AutoSizeMode Property

Definition

Gets or sets how the control will resize itself.

public:
 property System::Windows::Forms::AutoSizeMode AutoSizeMode { System::Windows::Forms::AutoSizeMode get(); void set(System::Windows::Forms::AutoSizeMode value); };
[System.ComponentModel.Browsable(true)]
public System.Windows.Forms.AutoSizeMode AutoSizeMode { get; set; }
[<System.ComponentModel.Browsable(true)>]
member this.AutoSizeMode : System.Windows.Forms.AutoSizeMode with get, set
Public Property AutoSizeMode As AutoSizeMode

Property Value

A value from the AutoSizeMode enumeration. The default is GrowOnly.

Attributes

Remarks

Controls that do not recognize the AutoSizeMode property will function as though AutoSizeMode was set to GrowAndShrink. All controls that recognize the AutoSizeMode property will, by default, grow to fit available space, but will not shrink below the value specified by the Size property.

Applies to