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

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

반환

Boolean

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

설명

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

적용 대상