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.

ComponentCollection::Item Property (Int32)

 

Gets the Component in the collection at the specified collection index.

Namespace:   System.ComponentModel
Assembly:  System (in System.dll)

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

Parameters

index
Type: System::Int32

The collection index of the Component to get.

Property Value

Type: System.ComponentModel::IComponent^

The IComponent at the specified index.

Exception Condition
ArgumentOutOfRangeException

If the specified index is not within the index range of the collection.

This method can be overridden by a derived class.

.NET Framework
Available since 1.1
Return to top
Show:
© 2017 Microsoft