Skip to main content
ListView.elementFromIndex method

Applies to Windows and Windows Phone

Returns the Document Object Model (DOM) element that represents the item at the specified index.

Syntax


var htmlElement = listView.elementFromIndex(itemIndex);

Parameters

itemIndex

Type: Number

The index of the item.

Return value

Type: HTMLElement

The DOM element that represents the item at the specified index.

Requirements

Minimum WinJS version

WinJS 3.0

Namespace

WinJS.UI

See also

ListView