OutputWindowPanes.Item Method
Returns a OutputWindowPane object in a OutputWindowPanes collection.
Namespace: EnvDTE
Assembly: EnvDTE (in EnvDTE.dll)
Syntax
'Declaration
Function Item ( _
index As Object _
) As OutputWindowPane
OutputWindowPane Item(
Object index
)
OutputWindowPane^ Item(
Object^ index
)
abstract Item :
index:Object -> OutputWindowPane
function Item(
index : Object
) : OutputWindowPane
Parameters
- index
Type: System.Object
Required. The index of the OutputWindowPane object to return.
Return Value
Type: EnvDTE.OutputWindowPane
An OutputWindowPane object.
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.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
Other Resources
How to: Compile and Run the Automation Object Model Code Examples