Menu.MenuItemCollection.RemoveByKey(String) 方法

定義

從集合中移除具有指定索引鍵的功能表項目。

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

要移除的功能表項目名稱。

備註

屬性 Name 會對應至 中 之 的 MenuItemMenu.MenuItemCollection 索引鍵。

索引鍵比較不區分大小寫。

適用於