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
array
Type: array<Microsoft.Office.Tools.SmartTagBase[]The destination of the smart tags copied from the collection.
index
Type: System.Int32The 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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.