ListView.ColumnHeaderCollection.Item[] プロパティ

定義

コレクションから列ヘッダーを取得します。

オーバーロード

名前 説明
Item[Int32]

コレクション内の指定したインデックス位置にある列ヘッダーを取得します。

Item[String]

指定したキーを持つ列ヘッダーをコレクションから取得します。

Item[Int32]

ソース:
ListView.ColumnHeaderCollection.cs
ソース:
ListView.ColumnHeaderCollection.cs
ソース:
ListView.ColumnHeaderCollection.cs
ソース:
ListView.ColumnHeaderCollection.cs
ソース:
ListView.ColumnHeaderCollection.cs

コレクション内の指定したインデックス位置にある列ヘッダーを取得します。

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

パラメーター

index
Int32

コレクションから取得する列ヘッダーのインデックス。

プロパティ値

コレクション内の指定したインデックスにある列ヘッダーを表す ColumnHeader

例外

indexが 0 未満であるか、CountListView.ColumnHeaderCollection プロパティの値以上です。

注釈

このメソッドを使用すると、コレクション内の特定の場所に格納されている ColumnHeader を取得できます。 コレクション内の特定の列ヘッダーのインデックスを確認するには、 IndexOf メソッドを使用します。

こちらもご覧ください

適用対象

Item[String]

ソース:
ListView.ColumnHeaderCollection.cs
ソース:
ListView.ColumnHeaderCollection.cs
ソース:
ListView.ColumnHeaderCollection.cs
ソース:
ListView.ColumnHeaderCollection.cs
ソース:
ListView.ColumnHeaderCollection.cs

指定したキーを持つ列ヘッダーをコレクションから取得します。

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

パラメーター

key
String

コレクションから取得する列ヘッダーの名前。

プロパティ値

指定したキーを持つ ColumnHeader

注釈

キーの比較では、大文字と小文字は区別されません。 keynullまたは空の文字列の場合、Item[]nullを返します。

適用対象