Partager via


Windows.Item(Object) Method

Definition

Returns a Window object in a Windows collection.

public:
 EnvDTE::Window ^ Item(System::Object ^ index);
public:
 EnvDTE::Window ^ Item(Platform::Object ^ index);
EnvDTE::Window Item(winrt::Windows::Foundation::IInspectable const & index);
[System.Runtime.InteropServices.DispId(0)]
public EnvDTE.Window Item (object index);
[<System.Runtime.InteropServices.DispId(0)>]
abstract member Item : obj -> EnvDTE.Window
Public Function Item (index As Object) As Window

Parameters

index
Object

Required. The index of the Window object to return.

Returns

A Window object.

Attributes

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