CheckedListBox.CheckedIndexCollection.Contains(Int32) 메서드

정의

지정된 인덱스가 컬렉션에 있는지 여부를 확인합니다.

public:
 bool Contains(int index);
public bool Contains(int index);
member this.Contains : int -> bool
Public Function Contains (index As Integer) As Boolean

매개 변수

index
Int32

컬렉션에서 찾을 인덱스입니다.

반품

true 지정된 인덱스가 이 컬렉션의 항목이면 CheckedListBox.ObjectCollection 이고, false그렇지 않으면 .

설명

이 메서드를 사용하여 컬렉션의 인덱스가 컬렉션에 ItemsCheckedIndices 있는지 여부를 확인할 수 있습니다.

적용 대상