Language

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の定義済みの値のいずれかを指定できます。

返品

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

適用対象

こちらもご覧ください