อ่านในภาษาอังกฤษ แก้ไข

แชร์ผ่าน


IUIService.ShowToolWindow(Guid) Method

Definition

Displays the specified tool window.

C#
public bool ShowToolWindow(Guid toolWindow);

Parameters

toolWindow
Guid

A Guid identifier for the tool window. This can be a custom Guid or one of the predefined values from StandardToolWindows.

Returns

true if the tool window was successfully shown; false if it could not be shown or found.

Examples

The following code example attempts to obtain an instance of the IUIService and invoke the service's ShowToolWindow method.

C#
IUIService UIservice = (IUIService)this.GetService( 
    typeof( System.Windows.Forms.Design.IUIService ) );
if( UIservice != null )            
    UIservice.ShowToolWindow(StandardToolWindows.TaskList);

Applies to

ผลิตภัณฑ์ เวอร์ชัน
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10

See also