Version

Insert(Int32,GalleryToolItem) Method

Inserts a GalleryToolItem object into the collection at the specified index.
Syntax
'Declaration
 
Public Overloads Sub Insert( _
   ByVal index As Integer, _
   ByVal item As GalleryToolItem _
) 
public void Insert( 
   int index,
   GalleryToolItem item
)

Parameters

index
The index at which to insert the GalleryToolItem.
item
The GalleryToolItem being inserted.
Exceptions
ExceptionDescription
System.ArgumentNullExceptionitem is null.
System.ObjectDisposedExceptionitem has been disposed.
System.InvalidOperationExceptionitem already belongs to another GalleryToolItemCollection.
System.ArgumentExceptionThe key of item is null or empty.
System.ArgumentExceptionAn item with the same key of item already exists in the collection.
System.ArgumentOutOfRangeExceptionindex is less than zero or greater than the Count.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also