DesignerVerbCollection.Insert(Int32, DesignerVerb) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
在指定索引处插入指定的 DesignerVerb。
public:
void Insert(int index, System::ComponentModel::Design::DesignerVerb ^ value);
public void Insert (int index, System.ComponentModel.Design.DesignerVerb value);
public void Insert (int index, System.ComponentModel.Design.DesignerVerb? value);
member this.Insert : int * System.ComponentModel.Design.DesignerVerb -> unit
Public Sub Insert (index As Integer, value As DesignerVerb)
参数
- index
- Int32
集合中要插入谓词的索引。
- value
- DesignerVerb
要在集合中插入的 DesignerVerb。
示例
下面的代码示例演示如何在索引 0 处将 插入 DesignerVerb 。DesignerVerbCollection
// Inserts a DesignerVerb at index 0 of the collection.
collection->Insert( 0, gcnew DesignerVerb( "Example designer verb", gcnew EventHandler( this, &Class1::ExampleEvent ) ) );
// Inserts a DesignerVerb at index 0 of the collection.
collection.Insert( 0, new DesignerVerb("Example designer verb", new EventHandler(this.ExampleEvent)) );
' Inserts a DesignerVerb at index 0 of the collection.
collection.Insert(0, New DesignerVerb("Example designer verb", New EventHandler(AddressOf Me.ExampleEvent)))