ScrollableControl.AdjustFormScrollbars(Boolean) ScrollableControl.AdjustFormScrollbars(Boolean) ScrollableControl.AdjustFormScrollbars(Boolean) ScrollableControl.AdjustFormScrollbars(Boolean) Method

定义

根据当前控件位置和当前所选控件调整容器中的滚动条。Adjusts the scroll bars on the container based on the current control positions and the control currently selected.

protected:
 virtual void AdjustFormScrollbars(bool displayScrollbars);
protected virtual void AdjustFormScrollbars (bool displayScrollbars);
abstract member AdjustFormScrollbars : bool -> unit
override this.AdjustFormScrollbars : bool -> unit
Protected Overridable Sub AdjustFormScrollbars (displayScrollbars As Boolean)

参数

displayScrollbars
Boolean Boolean Boolean Boolean

如果显示滚动条,则为 true;否则为 falsetrue to show the scroll bars; otherwise, false.

注解

如果需要, 该AdjustFormScrollbars方法将布局工作区, 包括根据需要调整显示区域大小以容纳滚动条。When required, the AdjustFormScrollbars method lays out the client area, including resizing the display area as required to accommodate the scroll bars.

适用于

另请参阅