ScrollableControl 构造函数
定义
初始化 ScrollableControl 类的新实例。Initializes a new instance of the ScrollableControl class.
public:
ScrollableControl();
public ScrollableControl ();
Public Sub New ()
注解
默认 ScrollableControl 构造函数执行以下操作:The default ScrollableControl constructor performs the following actions:
通过调用 SetStyle 方法将 ContainerControl 样式设置为,将当前实例标记为容器控件
true
。Marks the current instance as a container control by calling the SetStyle method to set the ContainerControl style totrue
.通过将设置为来启用后台擦除 AllPaintingInWmPaint
false
。Enables background erasing by setting the AllPaintingInWmPaint tofalse
.通过调用方法来禁用自动滚动, SetScrollState 以将 ScrollStateAutoScrolling 位设置为
false
。Disables auto-scrolling by calling the SetScrollState method to set the ScrollStateAutoScrolling bit tofalse
.