Panel.AutoSize 属性

定义

获取或设置一个值,该值指示控件是否基于其内容调整大小。Gets or sets a value that indicates whether the control resizes based on its contents.

public:
 virtual property bool AutoSize { bool get(); void set(bool value); };
[System.ComponentModel.Browsable(true)]
public override bool AutoSize { get; set; }
public override bool AutoSize { get; set; }
[<System.ComponentModel.Browsable(true)>]
member this.AutoSize : bool with get, set
member this.AutoSize : bool with get, set
Public Overrides Property AutoSize As Boolean

属性值

Boolean

如果控件基于其内容自动调整大小,则为 true;否则为 falsetrue if the control automatically resizes based on its contents; otherwise, false. 默认值为 trueThe default is true.

属性

适用于