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.

適用於

另請參閱