DesignerVerbCollection.AddRange メソッド (DesignerVerb )
指定した一連のデザイナ動詞をコレクションに追加します。
Overloads Public Sub AddRange( _
ByVal value() As DesignerVerb _)
[C#]
public void AddRange(DesignerVerb[] value);
[C++]
public: void AddRange(DesignerVerb* value[]);
[JScript]
public function AddRange(
value : DesignerVerb[]);
パラメータ
- value
コレクションに追加する DesignerVerb オブジェクトの配列。
使用例
' 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)
[C#]
// 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 );
[C++]
// Adds an array of DesignerVerb objects to the collection.
DesignerVerb* verbs[] = {
new DesignerVerb(S"Example designer verb", new EventHandler(this, &Class1::ExampleEvent)),
new DesignerVerb(S"Example designer verb", new EventHandler(this, &Class1::ExampleEvent))
};
collection->AddRange( verbs );
// Adds a collection of DesignerVerb objects to the collection.
DesignerVerbCollection* verbsCollection = new DesignerVerbCollection();
verbsCollection->Add( new DesignerVerb(S"Example designer verb", new EventHandler(this, &Class1::ExampleEvent)) );
verbsCollection->Add( new DesignerVerb(S"Example designer verb", new EventHandler(this, &Class1::ExampleEvent)) );
collection->AddRange( verbsCollection );
[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 ファミリ
参照
DesignerVerbCollection クラス | DesignerVerbCollection メンバ | System.ComponentModel.Design 名前空間 | DesignerVerbCollection.AddRange オーバーロードの一覧