SortedListProjection object

WinJS.Binding.SortedListProjection object

Applies to Windows and Windows Phone

Do not instantiate. Returned by the createSorted method.

Syntax


var sortedList = list.createSorted(sorter);

Members

The SortedListProjection object has these types of members:

Methods

The SortedListProjection object has these methods.

MethodDescription
getItem

Returns a key/data pair for the specified index.

indexOfKey

Returns the index of the first occurrence of a key.

notifyMutated

Forces the list to send a itemmutated notification to any listeners for the value at the specified index.

setAt

Replaces the value at the specified index with a new value.

 

Properties

The SortedListProjection object has these properties.

PropertyAccess typeDescription

length

Read/write

Gets or sets the length of the list. Returns an integer value one higher than the highest element defined in a list.

 

Remarks

This object inherits from WinJS.Binding.List. You can manipulate a FilteredListProjection using many of the same techniques as a List object.

Requirements

Minimum WinJS version

WinJS 1.0

Namespace

WinJS.Binding

 

 

Show:
© 2017 Microsoft