Control.SetAutoSizeMode(AutoSizeMode) 方法

定義

設定值,表示已啟用控制項的 AutoSize 屬性時,該控制項的行為模式為何。Sets a value indicating how a control will behave when its AutoSize property is enabled.

protected:
 void SetAutoSizeMode(System::Windows::Forms::AutoSizeMode mode);
protected void SetAutoSizeMode (System.Windows.Forms.AutoSizeMode mode);
member this.SetAutoSizeMode : System.Windows.Forms.AutoSizeMode -> unit
Protected Sub SetAutoSizeMode (mode As AutoSizeMode)

參數

mode
AutoSizeMode

其中一個 AutoSizeMode 值。One of the AutoSizeMode values.

適用於