ComponentCollection.Item Property (Int32)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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

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

public virtual IComponent this[
	int index
] { get; }

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: