StatusBar.StatusBarPanelCollection.Item[] 속성

정의

컬렉션 내의 항목을 가져오거나 설정합니다.

오버로드

Item[String]

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

Item[Int32]

지정된 인덱스에 있는 StatusBarPanel를 가져오거나 설정합니다.

Item[String]

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

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

매개 변수

key
String

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

속성 값

StatusBarPanel

지정된 키를 가진 StatusBarPanel입니다.

설명

Name 키에 해당 하는 속성을 StatusBarPanelStatusBar.StatusBarPanelCollection합니다.

키 비교는 대/소문자 구분 하지 않습니다. 경우는 key 매개 변수가 null 이거나 빈 문자열인 경우 Item[] 반환 null.

적용 대상

Item[Int32]

지정된 인덱스에 있는 StatusBarPanel를 가져오거나 설정합니다.

public:
 virtual property System::Windows::Forms::StatusBarPanel ^ default[int] { System::Windows::Forms::StatusBarPanel ^ get(int index); void set(int index, System::Windows::Forms::StatusBarPanel ^ value); };
public virtual System.Windows.Forms.StatusBarPanel this[int index] { get; set; }
member this.Item(int) : System.Windows.Forms.StatusBarPanel with get, set
Default Public Overridable Property Item(index As Integer) As StatusBarPanel

매개 변수

index
Int32

컬렉션에서 가져오거나 설정할 패널의 인덱스입니다.

속성 값

StatusBarPanel

컬렉션에서 지정한 인덱스에 위치한 패널을 나타내는 StatusBarPanel입니다.

예외

index 매개 변수가 0보다 작거나 Count 클래스의 StatusBar.StatusBarPanelCollection 속성 값보다 크거나 같은 경우

컬렉션에 할당된 StatusBarPanelnull인 경우

설명

이 메서드를 사용하여 컬렉션 내의 StatusBarPanel 특정 위치에 저장된 항목을 가져올 수 있습니다. 컬렉션 내에서 특정 패널의 인덱스 확인 하려면 메서드를 IndexOf 사용 합니다.

추가 정보

적용 대상