特定のインデックスを開始位置として、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 から始まるインデックス番号。
解説
次の場合に例外がスローされます。
array は null (Microsoft Visual Basic .NET では nothing) 参照です。
array が多次元です。
index が 0 未満です。
index が array の長さ以上です。
コレクション内の要素の数が index から array の末尾までに格納できる数を超えています。
例
次の例では、InkRecognizerBaseCollection、theInkRecognizerCollection 内の認識エンジンを、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 クラス