次の方法で共有


ToolWindowPane.ToolBarCommandTarget Property

Definition

If the toolwindow has a ToolBar then this property allows to customize its command target. If this value is null then window frame of this toolwindow is used as the command target for the ToolBar. Like other toolbar related properties, this property must be set before the initialization of the ToolWindowPane is complete.

public:
 property Microsoft::VisualStudio::OLE::Interop::IOleCommandTarget ^ ToolBarCommandTarget { Microsoft::VisualStudio::OLE::Interop::IOleCommandTarget ^ get(); void set(Microsoft::VisualStudio::OLE::Interop::IOleCommandTarget ^ value); };
public:
 property Microsoft::VisualStudio::OLE::Interop::IOleCommandTarget ^ ToolBarCommandTarget { Microsoft::VisualStudio::OLE::Interop::IOleCommandTarget ^ get(); void set(Microsoft::VisualStudio::OLE::Interop::IOleCommandTarget ^ value); };
public Microsoft.VisualStudio.OLE.Interop.IOleCommandTarget ToolBarCommandTarget { get; set; }
member this.ToolBarCommandTarget : Microsoft.VisualStudio.OLE.Interop.IOleCommandTarget with get, set
Public Property ToolBarCommandTarget As IOleCommandTarget

Property Value

The toolbar, or null to use the window frame of this window.

Exceptions

If this property is set after the intialization of this ToolWindowPane then an Exception is thrown.

Applies to