ListView.ColumnHeaderCollection.RemoveByKey(String) Methode
Definition
Entfernt die Spalte mit dem angegebenen Schlüssel aus der Auflistung.Removes the column with the specified key from the collection.
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)
Parameter
- key
- String
Der aus der Auflistung zu entfernende Name der Spalte.The name of the column to remove from the collection.
Hinweise
Die- Name Eigenschaft entspricht dem Schlüssel für eine Spalte in der ListView.ColumnHeaderCollection .The Name property corresponds to the key for a column in the ListView.ColumnHeaderCollection.
Beim Schlüssel Vergleich wird die Groß-/Kleinschreibung nicht beachtet.The key comparison is not-case sensitive. Wenn key
null
oder eine leere Zeichenfolge ist, wird die Auflistung von RemoveByKey nicht geändert..
If key
is null
or an empty string, RemoveByKey does not change the collection.