ListView.ColumnHeaderCollection.Item[] Eigenschaft
Definition
Ruft einen Spaltenheader aus der Auflistung ab.Gets a column header from the collection.
Überlädt
Item[Int32] |
Ruft den Spaltenheader am angegebenen Index in der Auflistung ab.Gets the column header at the specified index within the collection. |
Item[String] |
Ruft den Spaltenheader mit dem angegebenen Schlüssel aus der Auflistung ab.Gets the column header with the specified key from the collection. |
Item[Int32]
Ruft den Spaltenheader am angegebenen Index in der Auflistung ab.Gets the column header at the specified index within the collection.
public:
virtual property System::Windows::Forms::ColumnHeader ^ default[int] { System::Windows::Forms::ColumnHeader ^ get(int index); };
public virtual System.Windows.Forms.ColumnHeader this[int index] { get; }
member this.Item(int) : System.Windows.Forms.ColumnHeader
Default Public Overridable ReadOnly Property Item(index As Integer) As ColumnHeader
Parameter
- index
- Int32
Der Index des aus der Auflistung abzurufenden Spaltenheaders.The index of the column header to retrieve from the collection.
Eigenschaftswert
Ein ColumnHeader, der den Spaltenkopf am angegebenen Index in der Auflistung darstellt.A ColumnHeader representing the column header located at the specified index within the collection.
Ausnahmen
index
ist kleiner als 0 (null) bzw. größer oder gleich dem Wert der Count-Eigenschaft der ListView.ColumnHeaderCollection.index
is less than 0 or greater than or equal to the value of the Count property of the ListView.ColumnHeaderCollection.
Hinweise
Mit dieser Methode können Sie den ColumnHeader an einer bestimmten Position in der Auflistung gespeicherten abrufen.You can use this method to obtain the ColumnHeader stored at a specific location in the collection. Verwenden Sie die-Methode, um den Index eines bestimmten Spalten Headers in der Auflistung zu bestimmen IndexOf .To determine the index of a specific column header in the collection, use the IndexOf method.
Siehe auch
Gilt für:
Item[String]
Ruft den Spaltenheader mit dem angegebenen Schlüssel aus der Auflistung ab.Gets the column header with the specified key from the collection.
public:
virtual property System::Windows::Forms::ColumnHeader ^ default[System::String ^] { System::Windows::Forms::ColumnHeader ^ get(System::String ^ key); };
public virtual System.Windows.Forms.ColumnHeader this[string key] { get; }
member this.Item(string) : System.Windows.Forms.ColumnHeader
Default Public Overridable ReadOnly Property Item(key As String) As ColumnHeader
Parameter
- key
- String
Der Name des aus der Auflistung abzurufenden Spaltenheaders.The name of the column header to retrieve from the collection.
Eigenschaftswert
Das ColumnHeader mit dem angegebenen Schlüssel.The ColumnHeader with the specified key.
Hinweise
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 Item[] zurückgegeben null
.If key
is null
or an empty string, Item[] returns null
.