共用方式為


ProvideToolWindowVisibilityAttribute Constructors

Definition

Overloads

ProvideToolWindowVisibilityAttribute(Object, String)

Creates a new attribute for a specific tool window and a command UI guid.

ProvideToolWindowVisibilityAttribute(Object, String, Boolean)

Creates a new attribute for a specific tool window and a command UI guid.

ProvideToolWindowVisibilityAttribute(Object, String)

Creates a new attribute for a specific tool window and a command UI guid.

public:
 ProvideToolWindowVisibilityAttribute(System::Object ^ toolWindow, System::String ^ commandUIGuid);
public:
 ProvideToolWindowVisibilityAttribute(Platform::Object ^ toolWindow, Platform::String ^ commandUIGuid);
 ProvideToolWindowVisibilityAttribute(winrt::Windows::Foundation::IInspectable const & toolWindow, std::wstring const & commandUIGuid);
public ProvideToolWindowVisibilityAttribute (object toolWindow, string commandUIGuid);
new Microsoft.VisualStudio.Shell.ProvideToolWindowVisibilityAttribute : obj * string -> Microsoft.VisualStudio.Shell.ProvideToolWindowVisibilityAttribute
Public Sub New (toolWindow As Object, commandUIGuid As String)

Parameters

toolWindow
Object

The tool window Type or Guid (as string).

commandUIGuid
String

The command UI guid that controls the tool window's visibility.

Remarks

Automatic display and hiding of the Tool Window is accomplished by mapping the commandUIGuid to one or more UI contexts in the VISIBILITY_SECTION – VISIBILITY_END section of the associated .ctc file.

Applies to

ProvideToolWindowVisibilityAttribute(Object, String, Boolean)

Creates a new attribute for a specific tool window and a command UI guid.

public:
 ProvideToolWindowVisibilityAttribute(System::Object ^ toolWindow, System::String ^ commandUIGuid, bool bringToFront);
public ProvideToolWindowVisibilityAttribute (object toolWindow, string commandUIGuid, bool bringToFront);
new Microsoft.VisualStudio.Shell.ProvideToolWindowVisibilityAttribute : obj * string * bool -> Microsoft.VisualStudio.Shell.ProvideToolWindowVisibilityAttribute
Public Sub New (toolWindow As Object, commandUIGuid As String, bringToFront As Boolean)

Parameters

toolWindow
Object

The tool window Type or Guid (as string).

commandUIGuid
String

The command UI guid that controls the tool window's visibility.

bringToFront
Boolean

True if the tool window should always be brought to the front when shown via a command UI guid. False if it should only be shown without being brought to the front when shown via a command UI guid.

Using a constructor without this parameter will result in the default behavior of bringing the tool window to the front the first time it's shown via a command UI guid, then subsequent triggers will either "bring to front" or "show only" based on whether the tool window was active the last time it was hidden after the command UI guid was deactivated.

Applies to