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로 설정합니다.

반환

ListViewItem[]

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

예외

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

설명

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

적용 대상