共用方式為


ToolWindowPane.OnToolBarAdded Method

Called when a toolbar is added to the tool window.

Namespace:  Microsoft.VisualStudio.Shell
Assemblies:   Microsoft.VisualStudio.Shell.9.0 (in Microsoft.VisualStudio.Shell.9.0.dll)
  Microsoft.VisualStudio.Shell (in Microsoft.VisualStudio.Shell.dll)
  Microsoft.VisualStudio.Shell.10.0 (in Microsoft.VisualStudio.Shell.10.0.dll)

Syntax

'宣告
Public Overridable Sub OnToolBarAdded
'用途
Dim instance As ToolWindowPane

instance.OnToolBarAdded()
public virtual void OnToolBarAdded()
public:
virtual void OnToolBarAdded()
abstract OnToolBarAdded : unit -> unit 
override OnToolBarAdded : unit -> unit 
public function OnToolBarAdded()

Remarks

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

.NET Framework Security

See Also

Reference

ToolWindowPane Class

ToolWindowPane Members

Microsoft.VisualStudio.Shell Namespace