업데이트: 2007년 11월
지정된 인덱스에 있는 요소를 가져옵니다.
네임스페이스: System.Windows.Ink.AnalysisCore
어셈블리: IACore(IACore.dll)
구문
‘선언
Public ReadOnly Property Item ( _
index As Integer _
) As InkRecognizerBase
‘사용 방법
Dim instance As InkRecognizerBaseCollection
Dim index As Integer
Dim value As InkRecognizerBase
value = instance.Item(index)
public InkRecognizerBase Item[
int index
] { get; }
public:
property InkRecognizerBase^ Item[int index] {
InkRecognizerBase^ get (int index);
}
/** @property */
public InkRecognizerBase get_Item(
int index
)
JScript에서는 인덱싱된 속성을 지원하지 않습니다.
매개 변수
- index
형식: System.Int32
가져올 요소의 인덱스(0부터 시작)입니다.
속성 값
형식: System.Windows.Ink.AnalysisCore.InkRecognizerBase
지정한 인덱스의 요소입니다.
설명
참고
C#에서는 컬렉션의 Item 속성 대신 C# 예제에서처럼 컬렉션의 인덱서를 사용합니다.
예제
다음 예제에서는 컬렉션이 비어 있지 않은 경우 theInkRecognizerCollection이라는 InkRecognizerBaseCollection에서 첫 번째 인식기를 가져옵니다. 또한 컬렉션이 동기화되었는지 확인합니다.
' Create a collection of the recognizers installed on this Tablet PC.
Dim theInkRecognizerCollection As InkRecognizerBaseCollection = _
theInkAnalyzerBase.GetInkRecognizersByPriority()
' Check if there are recognizers in the collection.
If (0 < theInkRecognizerCollection.Count) Then
' Get the first recognizer in the collection.
Dim theFirstInkRecognizer As System.Windows.Ink.AnalysisCore.InkRecognizerBase = _
theInkRecognizerCollection.Item(0)
' Check if the recognizers collection is synchronized.
If (theInkRecognizerCollection.IsSynchronized) Then
' Insert code here.
End If
End If
// Create a collection of the recognizers installed on this Tablet PC.
InkRecognizerBaseCollection theInkRecognizerCollection =
theInkAnalyzerBase.GetInkRecognizersByPriority();
// Check if there are recognizers in the collection.
if (0 < theInkRecognizerCollection.Count)
{
// Get the first recognizer in the collection.
InkRecognizerBase theFirstInkRecognizer =
theInkRecognizerCollection[0];
// Insert code here.
}
// Check if the recognizers collection is synchronized.
if (theInkRecognizerCollection.IsSynchronized)
{
// Insert code here.
}
플랫폼
Windows Vista, Windows XP SP2, Windows Server 2003
.NET Framework 및 .NET Compact Framework에서 모든 플랫폼의 전체 버전을 지원하지는 않습니다. 지원되는 버전의 목록을 보려면 .NET Framework 시스템 요구 사항을 참조하십시오.
버전 정보
.NET Framework
3.0에서 지원
참고 항목
참조
InkRecognizerBaseCollection 클래스