Partilhar via


SmartTagCollection.CopyTo Method

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. .

Namespace:  Microsoft.Office.Tools
Assembly:  Microsoft.Office.Tools.Common (in Microsoft.Office.Tools.Common.dll)

Syntax

'Declaration
Sub CopyTo ( _
    array As SmartTagBase(), _
    index As Integer _
)
void CopyTo(
    SmartTagBase[] array,
    int index
)

Parameters

  • index
    Type: System.Int32

    The index of the array at which to begin copying.

Exceptions

Exception Condition
ArgumentException

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.

ArgumentNullException

The array parameter is nulla null reference (Nothing in Visual Basic).

ArgumentOutOfRangeException

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

.NET Framework Security

See Also

Reference

SmartTagCollection Interface

Microsoft.Office.Tools Namespace