DesignerVerbCollection.Insert 方法

在指定索引处插入指定的 DesignerVerb

**命名空间:**System.ComponentModel.Design
**程序集:**System(在 system.dll 中)

语法

声明
Public Sub Insert ( _
    index As Integer, _
    value As DesignerVerb _
)
用法
Dim instance As DesignerVerbCollection
Dim index As Integer
Dim value As DesignerVerb

instance.Insert(index, value)
public void Insert (
    int index,
    DesignerVerb value
)
public:
void Insert (
    int index, 
    DesignerVerb^ value
)
public void Insert (
    int index, 
    DesignerVerb value
)
public function Insert (
    index : int, 
    value : DesignerVerb
)

参数

  • index
    集合中要插入谓词的索引。

示例

' Inserts a DesignerVerb at index 0 of the collection.
collection.Insert(0, New DesignerVerb("Example designer verb", New EventHandler(AddressOf Me.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, gcnew DesignerVerb( "Example designer verb", gcnew EventHandler( this, &Class1::ExampleEvent ) ) );

平台

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 并不是对每个平台的所有版本都提供支持。有关受支持版本的列表,请参见系统要求

版本信息

.NET Framework

受以下版本支持:2.0、1.1、1.0

请参见

参考

DesignerVerbCollection 类
DesignerVerbCollection 成员
System.ComponentModel.Design 命名空间