업데이트: 2007년 11월
CursorButtons 컬렉션 내에서 지정된 인덱스에 있는 CursorButton 개체를 가져옵니다.
네임스페이스: Microsoft.Ink
어셈블리: Microsoft.Ink(Microsoft.Ink.dll)
구문
‘선언
Public ReadOnly Property Item ( _
index As Integer _
) As CursorButton
‘사용 방법
Dim instance As CursorButtons
Dim index As Integer
Dim value As CursorButton
value = instance.Item(index)
public CursorButton Item[
int index
] { get; }
public:
property CursorButton^ Item[int index] {
CursorButton^ get (int index);
}
/** @property */
public CursorButton get_Item(
int index
)
JScript에서는 인덱싱된 속성을 지원하지 않습니다.
매개 변수
- index
형식: System.Int32
가져올 CursorButton 개체의 인덱스(0부터 시작)입니다.
속성 값
형식: Microsoft.Ink.CursorButton
CursorButtons 컬렉션 내의 지정된 CursorButton 개체입니다.
설명
index가 CursorButtons 컬렉션의 기존 멤버와 일치하지 않으면 System.ArgumentOutOfRangeException이 throw됩니다.
예제
이 C# 예제에서는 Cursor인 theCursor의 CursorButtons 컬렉션에서 첫 번째 CursorButton 개체를 가져옵니다.
CursorButton firstButton = theCursor.Buttons[0];
이 Microsoft® Visual Basic® .NET 예제에서는 Cursor인 theCursor의 CursorButtons 컬렉션에서 첫 번째 CursorButton 개체를 가져옵니다.
Dim firstButton As CursorButton = theCursor.Buttons.Item(0)
플랫폼
Windows Vista
.NET Framework 및 .NET Compact Framework에서 모든 플랫폼의 전체 버전을 지원하지는 않습니다. 지원되는 버전의 목록을 보려면 .NET Framework 시스템 요구 사항을 참조하십시오.
버전 정보
.NET Framework
3.0에서 지원