SelectionContainer::Item Method (Object^)

 

Returns an object in the SelectionContainer collection.

Namespace:   EnvDTE
Assembly:  EnvDTE (in EnvDTE.dll)

Object^ Item(
	Object^ index
)

Parameters

index
Type: System::Object^

Required. The index of the object to return.

Return Value

Type: System::Object^

An object.

The value passed to Index is either an integer that is an index to an object in its SelectionContainer collection or an object in the SelectionContainer collection.

The Item method throws a ArgumentException exception if the collection cannot find the object that corresponds to the index value.

Return to top
Show: