ToolStripItem.SetVisibleCore(Boolean) ToolStripItem.SetVisibleCore(Boolean) ToolStripItem.SetVisibleCore(Boolean) ToolStripItem.SetVisibleCore(Boolean) Method

定义

ToolStripItem 设置为指定的可见状态。Sets the ToolStripItem to the specified visible state.

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

参数

visible
Boolean Boolean Boolean Boolean

如果要使 ToolStripItem 可见,为 true;否则为 falsetrue to make the ToolStripItem visible; otherwise, false.

注解

通常, 重写此方法以更改控件的可见性行为。You typically override this method to change the visibility behavior of the control.

备注

当在SetVisibleCore派生类中重写时, 请确保调用基类的SetVisibleCore方法来强制更改控件的可见性。When overriding SetVisibleCore in a derived class, be sure to call the base class's SetVisibleCore method to force the visibility of the control to change.

适用于