Control.SetVisibleCore(Boolean) Control.SetVisibleCore(Boolean) Control.SetVisibleCore(Boolean) Control.SetVisibleCore(Boolean) Method

定义

将控件设置为指定的可见状态。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 Boolean Boolean 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.

适用于

另请参阅