CopyTo Method
Collapse the table of content
Expand the table of content

InputLanguageCollection.CopyTo Method

Copies the InputLanguageCollection values to a one-dimensional Array at the specified index.

[Visual Basic]
Public Sub CopyTo( _
   ByVal array() As InputLanguage, _
   ByVal index As Integer _
)
[C#]
public void CopyTo(
 InputLanguage[] array,
 int index
);
[C++]
public: void CopyTo(
 InputLanguage* array[],
 int index
);
[JScript]
public function CopyTo(
   array : InputLanguage[],
 index : int
);

Parameters

array
The one-dimensional array that is the destination of the values copied from InputLanguageCollection.
index
The index in the array parameter where copying begins.

Exceptions

Exception Type Condition
ArgumentException array specifies a multidimensional array.

-or-

The number of elements in the InputLanguageCollection is greater than the available space between the index and the end of array.

ArgumentNullException array is a null reference (Nothing in Visual Basic).
ArgumentOutOfRangeException index is less than the lower bound of array.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

InputLanguageCollection Class | InputLanguageCollection Members | System.Windows.Forms Namespace | Array

Show:
© 2016 Microsoft