共用方式為


ToolWindowPane.OnToolBarAdded Method

Definition

This should be overriden if you want to run code before the window is shown but after its toolbar is added.

public:
 virtual void OnToolBarAdded();
public:
 virtual void OnToolBarAdded();
 virtual void OnToolBarAdded();
public virtual void OnToolBarAdded ();
abstract member OnToolBarAdded : unit -> unit
override this.OnToolBarAdded : unit -> unit
Public Overridable Sub OnToolBarAdded ()

Remarks

This should be overridden to handle the state before the window is shown but after its toolbar is added.

Applies to