Condividi tramite


WinJS.Binding.SortedListProjection object

Do not instantiate. Returned by the createSorted method.

Syntax

var sortedList = list.createSorted(sorter);

Members

The SortedListProjection object has these types of members:

  • Methods
  • Properties

Methods

The SortedListProjection object has these methods.

Method Description
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.

Property Access type Description

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