DesignerVerbCollection.Add 方法
将指定的 DesignerVerb 添加到集合。
**命名空间:**System.ComponentModel.Design
**程序集:**System(在 system.dll 中)
语法
声明
Public Function Add ( _
value As DesignerVerb _
) As Integer
用法
Dim instance As DesignerVerbCollection
Dim value As DesignerVerb
Dim returnValue As Integer
returnValue = instance.Add(value)
public int Add (
DesignerVerb value
)
public:
int Add (
DesignerVerb^ value
)
public int Add (
DesignerVerb value
)
public function Add (
value : DesignerVerb
) : int
参数
- value
要添加到集合中的 DesignerVerb。
返回值
集合中添加谓词处的索引。
示例
' Adds a DesignerVerb to the collection.
collection.Add(New DesignerVerb("Example designer verb", New EventHandler(AddressOf Me.ExampleEvent)))
// Adds a DesignerVerb to the collection.
collection.Add( new DesignerVerb("Example designer verb", new EventHandler(this.ExampleEvent)) );
// Adds a DesignerVerb to the collection.
collection->Add( 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 命名空间