Windows.Item(Object) Method

Definition

Returns a Window object in a Windows collection.

[System.Runtime.InteropServices.DispId(0)]
public EnvDTE.Window Item (object index);
Parameters
index
Object

Required. The index of the Window object to return.

Returns

A Window object.

Remarks

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

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

Applies to