ToolWindowPane.Caption Property

Gets or sets the caption for the tool window.

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

Syntax

'宣言
Public Property Caption As String
'使用
Dim instance As ToolWindowPane
Dim value As String

value = instance.Caption

instance.Caption = value
public string Caption { get; set; }
public:
property String^ Caption {
    String^ get ();
    void set (String^ value);
}
public function get Caption () : String
public function set Caption (value : String)

Property Value

Type: System.String

The caption of the tool window.

Remarks

This property can be used to get or set the caption of the tool window. If the tool window has not been sited by Visual Studio, setting this caption property just stores the caption in the ToolWindowPane object. If the tool window has been sited by Visual Studio, setting the caption will access the window frame and update the caption. The value of this property is used by Package during its CreateToolWindow call. If the Caption is set to null, a default empty string will be used.

Permissions

See Also

Reference

ToolWindowPane Class

ToolWindowPane Members

Microsoft.VisualStudio.Shell Namespace