다음을 통해 공유


ListView.SelectedListViewItemCollection.Item[] 속성

정의

컬렉션에서 항목을 가져옵니다.

오버로드

Name Description
Item[String]

컬렉션에서 지정된 키를 가진 항목을 가져옵니다.

Item[Int32]

컬렉션 내의 지정된 인덱스에서 항목을 가져옵니다.

Item[String]

Source:
ListView.SelectedListViewItemCollection.cs
Source:
ListView.SelectedListViewItemCollection.cs
Source:
ListView.SelectedListViewItemCollection.cs
Source:
ListView.SelectedListViewItemCollection.cs
Source:
ListView.SelectedListViewItemCollection.cs

컬렉션에서 지정된 키를 가진 항목을 가져옵니다.

public:
 virtual property System::Windows::Forms::ListViewItem ^ default[System::String ^] { System::Windows::Forms::ListViewItem ^ get(System::String ^ key); };
public virtual System.Windows.Forms.ListViewItem this[string key] { get; }
member this.Item(string) : System.Windows.Forms.ListViewItem
Default Public Overridable ReadOnly Property Item(key As String) As ListViewItem

매개 변수

key
String

컬렉션에서 검색할 항목의 이름입니다.

속성 값

ListViewItem 지정된 키가 있는 키입니다.

설명

속성은 Name 에 있는 키에 ListViewItemListView.SelectedListViewItemCollection해당합니다.

키 비교는 대/소문자를 구분하지 않습니다. 매개 변수 또는 key 빈 문자열 Item[]nullnull 경우 .

적용 대상

Item[Int32]

Source:
ListView.SelectedListViewItemCollection.cs
Source:
ListView.SelectedListViewItemCollection.cs
Source:
ListView.SelectedListViewItemCollection.cs
Source:
ListView.SelectedListViewItemCollection.cs
Source:
ListView.SelectedListViewItemCollection.cs

컬렉션 내의 지정된 인덱스에서 항목을 가져옵니다.

public:
 property System::Windows::Forms::ListViewItem ^ default[int] { System::Windows::Forms::ListViewItem ^ get(int index); };
public System.Windows.Forms.ListViewItem this[int index] { get; }
member this.Item(int) : System.Windows.Forms.ListViewItem
Default Public ReadOnly Property Item(index As Integer) As ListViewItem

매개 변수

index
Int32

검색할 컬렉션에 있는 항목의 인덱스입니다.

속성 값

ListViewItem 컬렉션 내의 지정된 인덱스 위치에 있는 항목을 나타내는 값입니다.

예외

설명

이 인덱서를 사용하면 .에서 특정 항목을 가져올 수 있습니다 ListView.SelectedListViewItemCollection. 컬렉션에 저장된 항목은 에서 선택한 항목을 ListView.ListViewItemCollectionListView 나타내는 항목 ListView입니다.

적용 대상