업데이트: 2007년 11월
컬렉션의 요소를 특정 인덱스부터 시작하여 InkRecognizerBase 배열에 복사합니다.
네임스페이스: System.Windows.Ink.AnalysisCore
어셈블리: IACore(IACore.dll)
구문
‘선언
Public Sub CopyTo ( _
recognizers As InkRecognizerBase(), _
index As Integer _
)
‘사용 방법
Dim instance As InkRecognizerBaseCollection
Dim recognizers As InkRecognizerBase()
Dim index As Integer
instance.CopyTo(recognizers, index)
public void CopyTo(
InkRecognizerBase[] recognizers,
int index
)
public:
void CopyTo(
array<InkRecognizerBase^>^ recognizers,
int index
)
public void CopyTo(
InkRecognizerBase[] recognizers,
int index
)
public function CopyTo(
recognizers : InkRecognizerBase[],
index : int
)
매개 변수
- recognizers
형식: array<System.Windows.Ink.AnalysisCore.InkRecognizerBase[]
컬렉션에서 복사되는 요소의 대상인 1차원 배열입니다. 이 배열의 인덱스는 0부터 시작해야 합니다.
- index
형식: System.Int32
array에서 복사가 시작되는 인덱스(0부터 시작)입니다.
설명
다음과 같은 경우 예외가 throw됩니다.
array가 null(Microsoft Visual Basic .NET의 경우 nothing) 참조인 경우
array가 다차원 배열인 경우
index가 0보다 작은 경우
index가 array의 길이보다 크거나 같은 경우
컬렉션의 요소 수가 index와 array 끝 사이의 여유 공간보다 많은 경우
예제
다음 예제에서는 theInkRecognizerCollection이라는 InkRecognizerBaseCollection의 인식기를 InkRecognizerBase 배열로 복사합니다.
' Check if there are recognizers in the collection.
Dim theCount As Integer = theInkRecognizerCollection.Count
If (0 < theCount) Then
' Copy the recognizers in the collection to an array.
Dim theRecognizers(theCount) As InkRecognizerBase
theInkRecognizerCollection.CopyTo(theRecognizers, 0)
' Insert code here.
End If
// Check if there are recognizers in the collection.
int theCount = theInkRecognizerCollection.Count;
if (0 < theCount)
{
// Copy the recognizers in the collection to an array.
System.Windows.Ink.AnalysisCore.InkRecognizerBase[] theRecognizers =
new InkRecognizerBase[theCount];
theInkRecognizerCollection.CopyTo(theRecognizers, 0);
// Insert code here.
}
플랫폼
Windows Vista, Windows XP SP2, Windows Server 2003
.NET Framework 및 .NET Compact Framework에서 모든 플랫폼의 전체 버전을 지원하지는 않습니다. 지원되는 버전의 목록을 보려면 .NET Framework 시스템 요구 사항을 참조하십시오.
버전 정보
.NET Framework
3.0에서 지원
참고 항목
참조
InkRecognizerBaseCollection 클래스