ToolStripItemCollection.RemoveByKey(String) ToolStripItemCollection.RemoveByKey(String) ToolStripItemCollection.RemoveByKey(String) ToolStripItemCollection.RemoveByKey(String) Method

定义

移除具有指定键的项。Removes the item that has the specified key.

public:
 virtual void RemoveByKey(System::String ^ key);
public virtual void RemoveByKey (string key);
abstract member RemoveByKey : string -> unit
override this.RemoveByKey : string -> unit
Public Overridable Sub RemoveByKey (key As String)

参数

key
String String String String

要移除的 ToolStripItem 的键。The key of the ToolStripItem to remove.

异常

注解

参数值与ToolStripItem.Name属性相对应。 keyThe key parameter value corresponds to the ToolStripItem.Name property.

适用于