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: