ButtonArray.Item[Int16] 속성

정의

인덱스의 특정 요소를 ButtonArray 가져옵니다. 읽기 전용입니다.

public:
 property System::Windows::Forms::Button ^ default[short] { System::Windows::Forms::Button ^ get(short Index); };
public System.Windows.Forms.Button this[short Index] { get; }
member this.Item(int16) : System.Windows.Forms.Button
Default Public ReadOnly Property Item(Index As Short) As Button

매개 변수

Index
Int16

Short 컨트롤 배열의 요소 위치를 지정하는 A입니다.

속성 값

Button 컨트롤 배열에 지정된 Index A입니다.

설명

Item 속성은 컨트롤 배열의 기본 속성입니다. 따라서 다음 코드 줄은 동일합니다.

MsgBox(CStr(ButtonArray.Item(1).Text))
MsgBox(CStr(ButtonArray(1).Text))

메모

네임스페이 Microsoft.VisualBasic.Compatibility.VB6 스의 함수 및 개체는 Visual Basic 6.0에서 Visual Basic으로 업그레이드하기 위한 도구에서 사용할 수 있도록 제공됩니다. 대부분의 경우 이러한 함수와 개체는 .NET Framework의 다른 네임스페이스에서 찾을 수 있는 기능을 복제합니다. Visual Basic 6.0 코드 모델이 .NET Framework 구현과 크게 다른 경우에만 필요합니다.

적용 대상