ScrollBar.AutoSize ScrollBar.AutoSize ScrollBar.AutoSize ScrollBar.AutoSize Property

定义

获取或设置一个值,该值指示是否自动调整 ScrollBar 的大小以完整显示其内容。Gets or sets a value indicating whether the ScrollBar is automatically resized to fit its contents.

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

属性值

如果 ScrollBar 应自动调整大小以适应其内容,则为 true;否则为 falsetrue if the ScrollBar should be automatically resized to fit its contents; otherwise, false.

注解

AutoSize设置属性对控件的外观没有影响。Setting the AutoSize property has no effect on the appearance of the control.

适用于