次の方法で共有


IUIService.ShowToolWindow メソッド

指定したツール ウィンドウを表示します。

Function ShowToolWindow( _
   ByVal toolWindow As Guid _) As Boolean
[C#]
bool ShowToolWindow(
   GuidtoolWindow);
[C++]
bool ShowToolWindow(
   GuidtoolWindow);
[JScript]
function ShowToolWindow(
   toolWindow : Guid) : Boolean;

パラメータ

  • toolWindow
    ツール ウィンドウの Guid 識別子。これは、カスタムの Guid か、 StandardToolWindows の定義済みの値の 1 つになります。

戻り値

ツール ウィンドウが正常に表示された場合は true 。ツール ウィンドウが表示されなかった場合、または見つからなかった場合は false

使用例

[Visual Basic, C#, C++] IUIService のインスタンスを取得し、サービスの ShowToolWindow メソッドを呼び出すコード例を次に示します。

 
Dim UIservice As IUIService = CType(Me.GetService( _
    GetType(System.Windows.Forms.Design.IUIService)), IUIService)
If Not (UIservice Is Nothing) Then
    UIservice.ShowToolWindow(StandardToolWindows.TaskList)
End If

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

[C++] 
IUIService* UIservice = dynamic_cast<IUIService*>(this->GetService(__typeof(System::Windows::Forms::Design::IUIService)));
if (UIservice != 0)
   UIservice->ShowToolWindow(StandardToolWindows::TaskList);

[JScript] JScript のサンプルはありません。Visual Basic、C#、および C++ のサンプルを表示するには、このページの左上隅にある言語のフィルタ ボタン 言語のフィルタ をクリックします。

必要条件

プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ

参照

IUIService インターフェイス | IUIService メンバ | System.Windows.Forms.Design 名前空間 | StandardToolWindows