Share via


IUIService.ShowToolWindow(Guid) 메서드

정의

지정한 도구 창을 표시합니다.

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

매개 변수

toolWindow
Guid

도구 창에 대한 Guid 식별자. 이 식별자는 사용자 지정 Guid이거나 StandardToolWindows의 미리 정의된 값 중 하나일 수 있습니다.

반환

Boolean

도구 창이 성공적으로 표시되면 true이고, 표시되지 않거나 찾을 수 없으면 false입니다.

예제

다음 코드 예제에서는 인스턴스를 IUIService 가져오고 서비스의 ShowToolWindow 메서드를 호출하려고 시도합니다.

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

적용 대상

추가 정보