Control.SetVisibleCore(Boolean) 方法
定义
将控件设置为指定的可见状态。Sets the control to the specified visible state.
protected:
virtual void SetVisibleCore(bool value);
protected virtual void SetVisibleCore (bool value);
abstract member SetVisibleCore : bool -> unit
override this.SetVisibleCore : bool -> unit
Protected Overridable Sub SetVisibleCore (value As Boolean)
参数
- value
- Boolean
true
表示使控件可见;false
表示使控件不可见。true
to make the control visible; otherwise, false
.
注解
通常会重写此方法以更改控件的可见性行为。You would typically override this method to change the visibility behavior of the control.
继承者说明
当 SetVisibleCore(Boolean) 在派生类中重写时,请确保调用基类的 SetVisibleCore(Boolean) 方法来强制更改控件的可见性。When overriding SetVisibleCore(Boolean) in a derived class, be sure to call the base class's SetVisibleCore(Boolean) method to force the visibility of the control to change.