IUIService.ShowToolWindow(Guid) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Affiche la fenêtre d’outil spécifiée.
public:
bool ShowToolWindow(Guid toolWindow);
public bool ShowToolWindow(Guid toolWindow);
abstract member ShowToolWindow : Guid -> bool
Public Function ShowToolWindow (toolWindow As Guid) As Boolean
Paramètres
- toolWindow
- Guid
Identificateur Guid de la fenêtre outil. Il peut s’agir d’une valeur personnalisée Guid ou d’une des valeurs prédéfinies à partir de StandardToolWindows.
Retours
true si la fenêtre outil a été correctement affichée ; false s’il n’a pas pu être affiché ou trouvé.
Exemples
L’exemple de code suivant tente d’obtenir une instance du IUIService service et d’appeler la méthode du ShowToolWindow service.
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