HtmlElementCollection::Item Property (Int32)

 

Gets an item from the collection by specifying its numerical index.

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

public:
property HtmlElement^ default[
	int index
] {
	HtmlElement^ get(int index);
}

Parameters

index
Type: System::Int32

The position from which to retrieve an item from the collection.

Property Value

Type: System.Windows.Forms::HtmlElement^

An item from the collection by specifying its numerical index.

Elements in an HtmlElementCollection are not guaranteed to be in source code order. In other words, just because a DIV element is the first element inside of a BODY tag does not mean that the first element of the collection will be the DIV element.

.NET Framework
Available since 2.0
Return to top
Show: