Compartir a través de


OutputWindowPanes.Item(Object) Method

Definition

Returns a OutputWindowPane object in a OutputWindowPanes collection.

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

Parameters

index
Object

Required. The index of the OutputWindowPane object to return.

Returns

An OutputWindowPane object.

Attributes

Remarks

The value passed to Index is either:

  • An integer that is an index to a OutputWindowPane object in its OutputWindowPanes collection.

    For example, OutputWindowPanes.Item(4).

    -or-

  • The name of a OutputWindowPane in the collection.

    For example, if you have an Output window named My Output Window, rather than referring to it by its index value, you could instead refer to it by its name, such as OutputWindowPanes.Item("My Output Window").

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

Applies to