ToolWindowPane.ToolBar Property

Gets or sets the CommandID.

Namespace:  Microsoft.VisualStudio.Shell
Assembly:  Microsoft.VisualStudio.Shell (in Microsoft.VisualStudio.Shell.dll)

Syntax

'宣言
Public Property ToolBar As CommandID
'使用
Dim instance As ToolWindowPane
Dim value As CommandID

value = instance.ToolBar

instance.ToolBar = value
public CommandID ToolBar { get; set; }
public:
property CommandID^ ToolBar {
    CommandID^ get ();
    void set (CommandID^ value);
}
public function get ToolBar () : CommandID
public function set ToolBar (value : CommandID)

Property Value

Type: System.ComponentModel.Design.CommandID

CommandID if the tool window has a toolbar, otherwise a null reference (Nothing in Visual Basic).

Remarks

The value can be set only if Frame is a null reference (Nothing in Visual Basic).

Permissions

See Also

Reference

ToolWindowPane Class

ToolWindowPane Members

Microsoft.VisualStudio.Shell Namespace