ElementHost.AutoSize 屬性

定義

取得或設定值,指出控制項是否自動調整大小以顯示其全部內容。Gets or sets a value indicating whether the control is automatically resized to display its entire 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

屬性值

Boolean

如果控制項會密切配合其內容而調整大小,就是 true,否則就是 falsetrue if the control adjusts its size to closely fit its contents; otherwise, false. 預設值為 trueThe default is true.

屬性

適用於

另請參閱