ListView.ColumnHeaderCollection.RemoveByKey(String) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
從集合中移除指定鍵的欄位。
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 對應於 中某欄 ListView.ColumnHeaderCollection的鍵值。
關鍵比較是不區分大小寫的。 若 key 是 null 空字串, RemoveByKey 則不會改變集合.