ToolboxItemCollection::Item Property (Int32)

 

Gets the ToolboxItem at the specified index.

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

public:
property ToolboxItem^ default[
	int index
] {
	ToolboxItem^ get(int index);
}

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 = nullptr;
for ( int index = 0; index < collection->Count; index++ )
   item = collection[ index ];

.NET Framework
Available since 1.1
Return to top
Show: