다음을 통해 공유


CursorButtons.Count 속성

업데이트: 2007년 11월

CursorButtons 컬렉션에 들어 있는 CursorButton 개체의 수를 가져옵니다.

네임스페이스:  Microsoft.Ink
어셈블리:  Microsoft.Ink(Microsoft.Ink.dll)

구문

‘선언
Public ReadOnly Property Count As Integer
‘사용 방법
Dim instance As CursorButtons
Dim value As Integer

value = instance.Count
public int Count { get; }
public:
virtual property int Count {
    int get () sealed;
}
/** @property */
public final int get_Count()
public final function get Count () : int

속성 값

형식: System.Int32
CursorButtons 컬렉션에 들어 있는 CursorButton 개체의 수입니다.

구현

ICollection.Count

예제

이 C# 예제에서는 Cursor인 theCursor의 CursorButtons 컬렉션인 theCursorButtons에 들어 있는 CursorButton 개체의 수를 확인합니다.

CursorButtons theCursorButtons = theCursor.Buttons;
int theCount = theCursorButtons.Count;

이 Microsoft® Visual Basic® .NET 예제에서는 Cursor인 theCursor의 CursorButtons 컬렉션인 theCursorButtons에 들어 있는 CursorButton 개체의 수를 확인합니다.

Dim theCursorButtons As CursorButtons = theCursor.Buttons
Dim theCount As Integer = theCursorButtons.Count

플랫폼

Windows Vista

.NET Framework 및 .NET Compact Framework에서 모든 플랫폼의 전체 버전을 지원하지는 않습니다. 지원되는 버전의 목록을 보려면 .NET Framework 시스템 요구 사항을 참조하십시오.

버전 정보

.NET Framework

3.0에서 지원

참고 항목

참조

CursorButtons 클래스

CursorButtons 멤버

Microsoft.Ink 네임스페이스

CursorButton

기타 리소스

System.Collections.ICollection