DesignerVerbCollection クラス
アセンブリ: System (system.dll 内)


このクラスは、DesignerVerb オブジェクトを格納できるコレクションを提供します。
![]() |
---|
このクラスに適用される HostProtectionAttribute 属性の Resources プロパティの値は、SharedState です。HostProtectionAttribute は、デスクトップ アプリケーション (一般的には、アイコンをダブルクリック、コマンドを入力、またはブラウザに URL を入力して起動するアプリケーション) には影響しません。詳細については、HostProtectionAttribute クラスのトピックまたは「SQL Server プログラミングとホスト保護属性」を参照してください。 |

' Creates an empty DesignerVerbCollection. Dim collection As New DesignerVerbCollection() ' Adds a DesignerVerb to the collection. collection.Add(New DesignerVerb("Example designer verb", New EventHandler(AddressOf Me.ExampleEvent))) ' Adds an array of DesignerVerb objects to the collection. Dim verbs As DesignerVerb() = {New DesignerVerb("Example designer verb", New EventHandler(AddressOf Me.ExampleEvent)), New DesignerVerb("Example designer verb", New EventHandler(AddressOf Me.ExampleEvent))} collection.AddRange(verbs) ' Adds a collection of DesignerVerb objects to the collection. Dim verbsCollection As New DesignerVerbCollection() verbsCollection.Add(New DesignerVerb("Example designer verb", New EventHandler(AddressOf Me.ExampleEvent))) verbsCollection.Add(New DesignerVerb("Example designer verb", New EventHandler(AddressOf Me.ExampleEvent))) collection.AddRange(verbsCollection) ' 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 ' Copies the contents of the collection, beginning at index 0, ' to the specified DesignerVerb array. ' 'verbs' is a DesignerVerb array. collection.CopyTo(verbs, 0) ' Retrieves the count of the items in the collection. Dim collectionCount As Integer = collection.Count ' Inserts a DesignerVerb at index 0 of the collection. collection.Insert(0, New DesignerVerb("Example designer verb", New EventHandler(AddressOf Me.ExampleEvent))) ' Removes the specified DesignerVerb from the collection. Dim verb As New DesignerVerb("Example designer verb", New EventHandler(AddressOf Me.ExampleEvent)) collection.Remove(verb) ' Removes the DesignerVerb at index 0. collection.RemoveAt(0)
// Creates an empty DesignerVerbCollection. DesignerVerbCollection collection = new DesignerVerbCollection(); // Adds a DesignerVerb to the collection. collection.Add( new DesignerVerb("Example designer verb", new EventHandler(this.ExampleEvent)) ); // Adds an array of DesignerVerb objects to the collection. DesignerVerb[] verbs = { new DesignerVerb("Example designer verb", new EventHandler(this.ExampleEvent)), new DesignerVerb("Example designer verb", new EventHandler(this.ExampleEvent)) }; collection.AddRange( verbs ); // Adds a collection of DesignerVerb objects to the collection. DesignerVerbCollection verbsCollection = new DesignerVerbCollection(); verbsCollection.Add( new DesignerVerb("Example designer verb", new EventHandler(this.ExampleEvent)) ); verbsCollection.Add( new DesignerVerb("Example designer verb", new EventHandler(this.ExampleEvent)) ); collection.AddRange( verbsCollection ); // 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 ); // Copies the contents of the collection, beginning at index 0, // to the specified DesignerVerb array. // 'verbs' is a DesignerVerb array. collection.CopyTo( verbs, 0 ); // Retrieves the count of the items in the collection. int collectionCount = collection.Count; // Inserts a DesignerVerb at index 0 of the collection. collection.Insert( 0, new DesignerVerb("Example designer verb", new EventHandler(this.ExampleEvent)) ); // Removes the specified DesignerVerb from the collection. DesignerVerb verb = new DesignerVerb("Example designer verb", new EventHandler(this.ExampleEvent)); collection.Remove( verb ); // Removes the DesignerVerb at index 0. collection.RemoveAt(0);
// Creates an empty DesignerVerbCollection. DesignerVerbCollection^ collection = gcnew DesignerVerbCollection; // Adds a DesignerVerb to the collection. collection->Add( gcnew DesignerVerb( "Example designer verb",gcnew EventHandler( this, &Class1::ExampleEvent ) ) ); // Adds an array of DesignerVerb objects to the collection. array<DesignerVerb^>^ verbs = { gcnew DesignerVerb( "Example designer verb", gcnew EventHandler( this, &Class1::ExampleEvent ) ), gcnew DesignerVerb( "Example designer verb", gcnew EventHandler( this, &Class1::ExampleEvent ) )}; collection->AddRange( verbs ); // Adds a collection of DesignerVerb objects to the collection. DesignerVerbCollection^ verbsCollection = gcnew DesignerVerbCollection; verbsCollection->Add( gcnew DesignerVerb( "Example designer verb", gcnew EventHandler( this, &Class1::ExampleEvent ) ) ); verbsCollection->Add( gcnew DesignerVerb( "Example designer verb", gcnew EventHandler( this, &Class1::ExampleEvent ) ) ); collection->AddRange( verbsCollection ); // 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 ); // Copies the contents of the collection, beginning at index 0, // to the specified DesignerVerb array. // 'verbs' is a DesignerVerb array. collection->CopyTo( verbs, 0 ); // Retrieves the count of the items in the collection. int collectionCount = collection->Count; // Inserts a DesignerVerb at index 0 of the collection. collection->Insert( 0, gcnew DesignerVerb( "Example designer verb", gcnew EventHandler( this, &Class1::ExampleEvent ) ) ); // Removes the specified DesignerVerb from the collection. DesignerVerb^ verb = gcnew DesignerVerb( "Example designer verb", gcnew EventHandler( this, &Class1::ExampleEvent ) ); collection->Remove( verb ); // Removes the DesignerVerb at index 0. collection->RemoveAt( 0 );

System.Collections.CollectionBase
System.ComponentModel.Design.DesignerVerbCollection


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 によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


DesignerVerbCollection コンストラクタ ()
アセンブリ: System (system.dll 内)



' Creates an empty DesignerVerbCollection. Dim collection As New DesignerVerbCollection()
// Creates an empty DesignerVerbCollection. DesignerVerbCollection collection = new DesignerVerbCollection();
// Creates an empty DesignerVerbCollection. DesignerVerbCollection^ collection = gcnew DesignerVerbCollection;

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 によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


DesignerVerbCollection コンストラクタ (DesignerVerb[])
アセンブリ: System (system.dll 内)



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 によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


DesignerVerbCollection コンストラクタ

名前 | 説明 |
---|---|
DesignerVerbCollection () | DesignerVerbCollection クラスの新しいインスタンスを初期化します。 |
DesignerVerbCollection (DesignerVerb[]) | DesignerVerb オブジェクトの指定した配列を使用して、DesignerVerbCollection クラスの新しいインスタンスを初期化します。 |

DesignerVerbCollection プロパティ

名前 | 説明 | |
---|---|---|
![]() | Capacity | CollectionBase に格納できる要素の数を取得または設定します。 ( CollectionBase から継承されます。) |
![]() | Count | CollectionBase インスタンスに格納されている要素の数を取得します。このプロパティはオーバーライドできません。 ( CollectionBase から継承されます。) |
![]() | Item | 指定したインデックス位置にある DesignerVerb を取得または設定します。 |

名前 | 説明 | |
---|---|---|
![]() | InnerList | CollectionBase インスタンス内の要素のリストを格納する ArrayList を取得します。 ( CollectionBase から継承されます。) |
![]() | List | CollectionBase インスタンス内の要素のリストを格納する IList を取得します。 ( CollectionBase から継承されます。) |

DesignerVerbCollection メソッド

名前 | 説明 | |
---|---|---|
![]() | Add | 指定した DesignerVerb をコレクションに追加します。 |
![]() | AddRange | オーバーロードされます。 指定した一連のデザイナ動詞をコレクションに追加します。 |
![]() | Clear | CollectionBase インスタンスからすべてのオブジェクトを削除します。このメソッドはオーバーライドできません。 ( CollectionBase から継承されます。) |
![]() | Contains | 指定した DesignerVerb がコレクション内に存在するかどうかを示す値を取得します。 |
![]() | CopyTo | 指定したインデックスを開始位置として、指定した DesignerVerb 配列にコレクション メンバをコピーします。 |
![]() | Equals | オーバーロードされます。 2 つの Object インスタンスが等しいかどうかを判断します。 ( Object から継承されます。) |
![]() | GetEnumerator | CollectionBase インスタンスを反復処理する列挙子を返します。 ( CollectionBase から継承されます。) |
![]() | GetHashCode | 特定の型のハッシュ関数として機能します。GetHashCode は、ハッシュ アルゴリズムや、ハッシュ テーブルのようなデータ構造での使用に適しています。 ( Object から継承されます。) |
![]() | GetType | 現在のインスタンスの Type を取得します。 ( Object から継承されます。) |
![]() | IndexOf | 指定した DesignerVerb のインデックスを取得します。 |
![]() | Insert | 指定したインデックス位置に指定した DesignerVerb を挿入します。 |
![]() | ReferenceEquals | 指定した複数の Object インスタンスが同一かどうかを判断します。 ( Object から継承されます。) |
![]() | Remove | 指定した DesignerVerb をコレクションから削除します。 |
![]() | RemoveAt | CollectionBase インスタンスの指定したインデックスにある要素を削除します。このメソッドはオーバーライドできません。 ( CollectionBase から継承されます。) |
![]() | ToString | 現在の Object を表す String を返します。 ( Object から継承されます。) |

名前 | 説明 | |
---|---|---|
![]() | Finalize | Object がガベージ コレクションにより収集される前に、その Object がリソースを解放し、その他のクリーンアップ操作を実行できるようにします。 ( Object から継承されます。) |
![]() | MemberwiseClone | 現在の Object の簡易コピーを作成します。 ( Object から継承されます。) |
![]() | OnClear | オーバーライドされます。 Clear イベントを発生させます。 |
![]() | OnClearComplete | CollectionBase インスタンスの内容を消去した後に、追加のカスタム プロセスを実行します。 ( CollectionBase から継承されます。) |
![]() | OnInsert | オーバーライドされます。 Insert イベントを発生させます。 |
![]() | OnInsertComplete | CollectionBase インスタンスに新しい要素を挿入した後に、追加のカスタム プロセスを実行します。 ( CollectionBase から継承されます。) |
![]() | OnRemove | オーバーライドされます。 Remove イベントを発生させます。 |
![]() | OnRemoveComplete | CollectionBase インスタンスから要素を削除した後に、追加のカスタム プロセスを実行します。 ( CollectionBase から継承されます。) |
![]() | OnSet | オーバーライドされます。 Set イベントを発生させます。 |
![]() | OnSetComplete | CollectionBase インスタンスに値を設定した後に、追加のカスタム プロセスを実行します。 ( CollectionBase から継承されます。) |
![]() | OnValidate | オーバーライドされます。 Validate イベントを発生させます。 |

DesignerVerbCollection メンバ
DesignerVerb オブジェクトのコレクションを表します。
DesignerVerbCollection データ型で公開されるメンバを以下の表に示します。


名前 | 説明 | |
---|---|---|
![]() | Capacity | CollectionBase に格納できる要素の数を取得または設定します。(CollectionBase から継承されます。) |
![]() | Count | CollectionBase インスタンスに格納されている要素の数を取得します。このプロパティはオーバーライドできません。(CollectionBase から継承されます。) |
![]() | Item | 指定したインデックス位置にある DesignerVerb を取得または設定します。 |

名前 | 説明 | |
---|---|---|
![]() | InnerList | CollectionBase インスタンス内の要素のリストを格納する ArrayList を取得します。(CollectionBase から継承されます。) |
![]() | List | CollectionBase インスタンス内の要素のリストを格納する IList を取得します。(CollectionBase から継承されます。) |

名前 | 説明 | |
---|---|---|
![]() | Add | 指定した DesignerVerb をコレクションに追加します。 |
![]() | AddRange | オーバーロードされます。 指定した一連のデザイナ動詞をコレクションに追加します。 |
![]() | Clear | CollectionBase インスタンスからすべてのオブジェクトを削除します。このメソッドはオーバーライドできません。 (CollectionBase から継承されます。) |
![]() | Contains | 指定した DesignerVerb がコレクション内に存在するかどうかを示す値を取得します。 |
![]() | CopyTo | 指定したインデックスを開始位置として、指定した DesignerVerb 配列にコレクション メンバをコピーします。 |
![]() | Equals | オーバーロードされます。 2 つの Object インスタンスが等しいかどうかを判断します。 (Object から継承されます。) |
![]() | GetEnumerator | CollectionBase インスタンスを反復処理する列挙子を返します。 (CollectionBase から継承されます。) |
![]() | GetHashCode | 特定の型のハッシュ関数として機能します。GetHashCode は、ハッシュ アルゴリズムや、ハッシュ テーブルのようなデータ構造での使用に適しています。 (Object から継承されます。) |
![]() | GetType | 現在のインスタンスの Type を取得します。 (Object から継承されます。) |
![]() | IndexOf | 指定した DesignerVerb のインデックスを取得します。 |
![]() | Insert | 指定したインデックス位置に指定した DesignerVerb を挿入します。 |
![]() | ReferenceEquals | 指定した複数の Object インスタンスが同一かどうかを判断します。 (Object から継承されます。) |
![]() | Remove | 指定した DesignerVerb をコレクションから削除します。 |
![]() | RemoveAt | CollectionBase インスタンスの指定したインデックスにある要素を削除します。このメソッドはオーバーライドできません。 (CollectionBase から継承されます。) |
![]() | ToString | 現在の Object を表す String を返します。 (Object から継承されます。) |

名前 | 説明 | |
---|---|---|
![]() | Finalize | Object がガベージ コレクションにより収集される前に、その Object がリソースを解放し、その他のクリーンアップ操作を実行できるようにします。 (Object から継承されます。) |
![]() | MemberwiseClone | 現在の Object の簡易コピーを作成します。 (Object から継承されます。) |
![]() | OnClear | オーバーライドされます。 Clear イベントを発生させます。 |
![]() | OnClearComplete | CollectionBase インスタンスの内容を消去した後に、追加のカスタム プロセスを実行します。 (CollectionBase から継承されます。) |
![]() | OnInsert | オーバーライドされます。 Insert イベントを発生させます。 |
![]() | OnInsertComplete | CollectionBase インスタンスに新しい要素を挿入した後に、追加のカスタム プロセスを実行します。 (CollectionBase から継承されます。) |
![]() | OnRemove | オーバーライドされます。 Remove イベントを発生させます。 |
![]() | OnRemoveComplete | CollectionBase インスタンスから要素を削除した後に、追加のカスタム プロセスを実行します。 (CollectionBase から継承されます。) |
![]() | OnSet | オーバーライドされます。 Set イベントを発生させます。 |
![]() | OnSetComplete | CollectionBase インスタンスに値を設定した後に、追加のカスタム プロセスを実行します。 (CollectionBase から継承されます。) |
![]() | OnValidate | オーバーライドされます。 Validate イベントを発生させます。 |

- DesignerVerbCollectionのページへのリンク