ListView.ListViewItemCollection.Find(String, Boolean) 메서드

정의

이름이 지정된 키와 일치하는 항목을 검색하고 선택적으로 하위 항목을 검색합니다.

public:
 cli::array <System::Windows::Forms::ListViewItem ^> ^ Find(System::String ^ key, bool searchAllSubItems);
public System.Windows.Forms.ListViewItem[] Find(string key, bool searchAllSubItems);
member this.Find : string * bool -> System.Windows.Forms.ListViewItem[]
Public Function Find (key As String, searchAllSubItems As Boolean) As ListViewItem()

매개 변수

key
String

검색할 항목 이름입니다.

searchAllSubItems
Boolean

true하위 항목 검색 그렇지 않으면 . false

반품

일치하는 항목이거나 일치하는 항목이 없는 경우 빈 배열입니다.

예외

.NET 5 이상 버전만: key is 또는 빈 문자열입니다 null .

설명

키 비교는 대/소문자를 구분하지 않습니다. 속성은 Name 에 있는 키에 ListViewItemListView.ListViewItemCollection해당합니다.

적용 대상