SmartTagCollection.CopyTo(SmartTagBase[], Int32) Method

Definition

Copies the smart tags in the SmartTagCollection to a one-dimensional array of smart tags, starting at a specified index. This type or member is intended to be used only in projects for the 2007 Microsoft Office system. Smart tags are deprecated in Office 2010..

public:
 void CopyTo(cli::array <Microsoft::Office::Tools::SmartTagBase ^> ^ array, int index);
public void CopyTo (Microsoft.Office.Tools.SmartTagBase[] array, int index);
abstract member CopyTo : Microsoft.Office.Tools.SmartTagBase[] * int -> unit
Public Sub CopyTo (array As SmartTagBase(), index As Integer)

Parameters

array
SmartTagBase[]

The destination of the smart tags copied from the collection.

index
Int32

The index of the array at which to begin copying.

Exceptions

The destination array is multidimensional, or the number of elements in the SmartTagCollection is greater than the available space between the index of the target array specified by the index parameter and the end of the target array.

The array parameter is null.

The index parameter is less than the target array's minimum index.

Applies to