ToolboxItemCollection.Item Property (Int32)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Gets the ToolboxItem at the specified index.

Namespace:   System.Drawing.Design
Assembly:  System.Drawing (in System.Drawing.dll)

public ToolboxItem this[
	int index
] { get; }


Type: System.Int32

The index of the object to get or set.

Property Value

Type: System.Drawing.Design.ToolboxItem

A ToolboxItem at each valid index in the collection.

The following code example demonstrates using the indexer of a ToolboxItemCollection.

// Get the ToolboxItem at each index.
ToolboxItem item = null;
for( int index = 0; index<collection.Count; index++ )
    item = collection[index];            

.NET Framework
Available since 1.1
Return to top