IUIService.ShowToolWindow(Guid) Metod

Definition

Visar det angivna verktygsfönstret.

public:
 bool ShowToolWindow(Guid toolWindow);
public bool ShowToolWindow(Guid toolWindow);
abstract member ShowToolWindow : Guid -> bool
Public Function ShowToolWindow (toolWindow As Guid) As Boolean

Parametrar

toolWindow
Guid

En Guid identifierare för verktygsfönstret. Detta kan vara ett anpassat Guid eller ett av de fördefinierade värdena från StandardToolWindows.

Returer

true om verktygsfönstret har visats. false om det inte gick att visa eller hitta den.

Exempel

Följande kodexempel försöker hämta en instans av IUIService och anropa tjänstens ShowToolWindow metod.

IUIService^ UIservice = dynamic_cast<IUIService^>(this->GetService( System::Windows::Forms::Design::IUIService::typeid ));
if ( UIservice != nullptr )
      UIservice->ShowToolWindow( StandardToolWindows::TaskList );
IUIService UIservice = (IUIService)this.GetService( 
    typeof( System.Windows.Forms.Design.IUIService ) );
if( UIservice != null )            
    UIservice.ShowToolWindow(StandardToolWindows.TaskList);
Dim UIservice As IUIService = CType(Me.GetService( _
    GetType(System.Windows.Forms.Design.IUIService)), IUIService)
If (UIservice IsNot Nothing) Then
    UIservice.ShowToolWindow(StandardToolWindows.TaskList)
End If

Gäller för

Se även