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