DesignerVerbCollection.IndexOf メソッド
アセンブリ: System (system.dll 内)

Dim instance As DesignerVerbCollection Dim value As DesignerVerb Dim returnValue As Integer returnValue = instance.IndexOf(value)
戻り値
指定したオブジェクトのインデックスがリスト内に見つかった場合はそのインデックス。見つからなかった場合は -1。

' Tests for the presence of a DesignerVerb in the collection, ' and retrieves its index if it is found. Dim testVerb As New DesignerVerb("Example designer verb", New EventHandler(AddressOf Me.ExampleEvent)) Dim itemIndex As Integer = -1 If collection.Contains(testVerb) Then itemIndex = collection.IndexOf(testVerb) End If
// Tests for the presence of a DesignerVerb in the collection, // and retrieves its index if it is found. DesignerVerb testVerb = new DesignerVerb("Example designer verb", new EventHandler(this.ExampleEvent)); int itemIndex = -1; if( collection.Contains( testVerb ) ) itemIndex = collection.IndexOf( testVerb );
// Tests for the presence of a DesignerVerb in the collection, // and retrieves its index if it is found. DesignerVerb^ testVerb = gcnew DesignerVerb( "Example designer verb", gcnew EventHandler( this, &Class1::ExampleEvent ) ); int itemIndex = -1; if ( collection->Contains( testVerb ) ) itemIndex = collection->IndexOf( testVerb );

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Weblioに収録されているすべての辞書からDesignerVerbCollection.IndexOf メソッドを検索する場合は、下記のリンクをクリックしてください。

- DesignerVerbCollection.IndexOf メソッドのページへのリンク