ToolStripItem.SetVisibleCore(Boolean) 方法

定義

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

true 表示讓 ToolStripItem 變成可見,否則為 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.

適用於