Version

Add(GalleryToolItem) Method

Adds a GalleryToolItem object to the collection.
Syntax
'Declaration
 
Public Overloads Function Add( _
   ByVal item As GalleryToolItem _
) As Integer
public int Add( 
   GalleryToolItem item
)

Parameters

item
The GalleryToolItem to add to the collection.

Return Value

The zero based index into the collection where the item was added.
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.
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