次の方法で共有


DesignerVerbCollection.AddRange メソッド

定義

指定した一連のデザイナー動詞をコレクションに追加します。

オーバーロード

AddRange(DesignerVerb[])

指定した一連のデザイナー動詞をコレクションに追加します。

AddRange(DesignerVerbCollection)

デザイナー動詞の指定したコレクションをコレクションに追加します。

AddRange(DesignerVerb[])

ソース:
DesignerVerbCollection.cs
ソース:
DesignerVerbCollection.cs
ソース:
DesignerVerbCollection.cs

指定した一連のデザイナー動詞をコレクションに追加します。

public:
 void AddRange(cli::array <System::ComponentModel::Design::DesignerVerb ^> ^ value);
public void AddRange (System.ComponentModel.Design.DesignerVerb[] value);
public void AddRange (System.ComponentModel.Design.DesignerVerb?[] value);
member this.AddRange : System.ComponentModel.Design.DesignerVerb[] -> unit
Public Sub AddRange (value As DesignerVerb())

パラメーター

value
DesignerVerb[]

コレクションに追加する DesignerVerb オブジェクトの配列。

例外

valuenullです。

次のコード例では、 オブジェクトの DesignerVerb 配列を に追加する方法を DesignerVerbCollection示します。

// 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 );
// 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 );
' 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)

適用対象

AddRange(DesignerVerbCollection)

ソース:
DesignerVerbCollection.cs
ソース:
DesignerVerbCollection.cs
ソース:
DesignerVerbCollection.cs

デザイナー動詞の指定したコレクションをコレクションに追加します。

public:
 void AddRange(System::ComponentModel::Design::DesignerVerbCollection ^ value);
public void AddRange (System.ComponentModel.Design.DesignerVerbCollection value);
member this.AddRange : System.ComponentModel.Design.DesignerVerbCollection -> unit
Public Sub AddRange (value As DesignerVerbCollection)

パラメーター

value
DesignerVerbCollection

コレクションに追加する DesignerVerbCollection

例外

valuenullです。

次のコード例では、オブジェクトの DesignerVerb コレクションを に追加する方法を DesignerVerbCollection示します。

// 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 );
// 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 );
' 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)

適用対象