共用方式為


DesignerVerbCollection.Remove(DesignerVerb) 方法

定義

從集合移除指定的 DesignerVerb

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

參數

value
DesignerVerb

要從集合中移除的 DesignerVerb

範例

下列程式代碼範例示範如何從 DesignerVerbCollection移除 DesignerVerb

// Removes the specified DesignerVerb from the collection.
DesignerVerb^ verb = gcnew DesignerVerb( "Example designer verb", gcnew EventHandler( this, &Class1::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.
Dim verb As New DesignerVerb("Example designer verb", New EventHandler(AddressOf Me.ExampleEvent))
collection.Remove(verb)

適用於