Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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:
© 2017 Microsoft