Redigeeri

Jagamisviis:


TextElementCollection<TextElementType>.CopyTo Method

Definition

Copies the contents of the collection and inserts them into a specified array starting at a specified index position in the array.

public:
 virtual void CopyTo(cli::array <TextElementType> ^ array, int arrayIndex);
public void CopyTo (TextElementType[] array, int arrayIndex);
abstract member CopyTo : 'extElementType[] * int -> unit
override this.CopyTo : 'extElementType[] * int -> unit
Public Sub CopyTo (array As TextElementType(), arrayIndex As Integer)

Parameters

array
TextElementType[]

A one-dimensional array to which the collection contents will be copied. This array must use zero-based indexing.

arrayIndex
Int32

A zero-based index in array specifying the position at which to begin inserting the copied collection objects.

Implements

Exceptions

Raised when array includes items that are not compatible with the type TextElement, or if arrayIndex specifies a position that falls outside of the bounds of array.

Raised when array is null.

Raised when arrayIndex is less than 0.

Applies to