DesignerVerbCollection.Remove 方法

从集合中移除指定的 DesignerVerb

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

语法

声明
Public Sub Remove ( _
    value As DesignerVerb _
)
用法
Dim instance As DesignerVerbCollection
Dim value As DesignerVerb

instance.Remove(value)
public void Remove (
    DesignerVerb value
)
public:
void Remove (
    DesignerVerb^ value
)
public void Remove (
    DesignerVerb value
)
public function Remove (
    value : DesignerVerb
)

参数

示例

' Removes the specified DesignerVerb from the collection.
Dim verb As New DesignerVerb("Example designer verb", New EventHandler(AddressOf Me.ExampleEvent))
collection.Remove(verb)
// Removes the specified DesignerVerb from the collection.
DesignerVerb verb = new DesignerVerb("Example designer verb", new EventHandler(this.ExampleEvent));
collection.Remove( verb );
// Removes the specified DesignerVerb from the collection.
DesignerVerb^ verb = gcnew DesignerVerb( "Example designer verb", gcnew EventHandler( this, &Class1::ExampleEvent ) );
collection->Remove( verb );

平台

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 命名空间