UserControl.AutoSizeMode 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 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
Pripomienky
https://aka.ms/ContentUserFeedback.
Pripravujeme: V priebehu roka 2024 postupne zrušíme službu Problémy v službe GitHub ako mechanizmus pripomienok týkajúcich sa obsahu a nahradíme ju novým systémom pripomienok. Ďalšie informácie nájdete na stránke:Odoslať a zobraziť pripomienky pre