Item Method
Collapse the table of content
Expand the table of content
This documentation is archived and is not being maintained.

TextRanges.Item Method

Returns a TextRange object in a TextRanges collection.

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

TextRange Item (
	[InAttribute] Object index
TextRange Item (
	/** @attribute InAttribute() */ Object index
function Item (
	index : Object
) : TextRange



Required. The index of the TextRange object to return.

Return Value

A TextRange object.

The value passed to Index is either an integer that is an index to a TextRange object in its TextRanges collection or the name of TextRange object in the collection.

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

© 2016 Microsoft