Documents::Item Method (Object^)

 

Returns an indexed member of a Documents collection.

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

Document^ Item(
	Object^ index
)

Parameters

index
Type: System::Object^

Required. The index of the item to return.

Return Value

Type: EnvDTE::Document^

A Document object.

For most objects, the value passed to Index is an integer that is an index to an object in its collection. For many objects, though, the value of Index can also be a string value that equates to an object in the collection. The exact value that is accepted by Item, though, depends on the collection and its implementation.

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

No code example is currently available or this language may not be supported.
Return to top
Show: