ToolboxItemCollection.Item Property (Int32)

 

Gets the ToolboxItem at the specified index.

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

public ToolboxItem this[
	int index
] { get; }

Parameters

index
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
Show: