ToolWindowPane.ToolBarCommandTarget Property
If the tool window has a ToolBar, then you can use this property to customize its command target. If this value is null, then the window frame of this tool window 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.
Namespace: Microsoft.VisualStudio.Shell
Assembly: Microsoft.VisualStudio.Shell.12.0 (in Microsoft.VisualStudio.Shell.12.0.dll)
Syntax
'Declaration
Public Property ToolBarCommandTarget As IOleCommandTarget
public IOleCommandTarget ToolBarCommandTarget { get; set; }
public:
property IOleCommandTarget^ ToolBarCommandTarget {
IOleCommandTarget^ get ();
void set (IOleCommandTarget^ value);
}
member ToolBarCommandTarget : IOleCommandTarget with get, set
function get ToolBarCommandTarget () : IOleCommandTarget
function set ToolBarCommandTarget (value : IOleCommandTarget)
Property Value
Type: Microsoft.VisualStudio.OLE.Interop.IOleCommandTarget
The toolbar, or null to use the window frame of this window.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.