ToolStripItemCollection.RemoveByKey(String) 方法

定義

移除具有指定索引鍵的項目。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

要移除之 ToolStripItem 的索引鍵。The key of the ToolStripItem to remove.

例外狀況

備註

key參數值會對應至 ToolStripItem.Name 屬性。The key parameter value corresponds to the ToolStripItem.Name property.

適用於