Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

TreeNodeCollection.IList.Item Property

This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.

Gets or sets the tree node at the specified index in the collection.

Namespace:  System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

Object IList.this[
	int index
] { get; set; }

Parameters

index
Type: System.Int32

The zero-based index at which to get or set the item.

Property Value

Type: System.Object
The TreeNode at the specified index in the TreeNodeCollection.

Implements

IList.Item

ExceptionCondition
ArgumentException

The value set is not a TreeNode.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft