Represents a selection of ListView items.
Members
The ISelection interface has these types of members:
Methods
The ISelection interface has these methods.
| Method | Description |
|---|---|
| add |
Adds one or more items to the selection. |
| clear |
Clears the selection. |
| count |
Returns the number of items in the selection. |
| getIndices |
Returns a list of the indexes for the items in the selection. |
| getItems |
Returns an array that contains the items in the selection. |
| getRanges |
Gets an array of the index ranges for the selected items. |
| isEverything |
Returns a value that indicates whether the selection contains every item in the data source. |
| remove |
Removes the specified items from the selection. |
| selectAll |
Adds all the items in the ListView to the selection. |
| set |
Clears the current selection and replaces it with the specified items. |
Remarks
To obtain an ISelection object, call the ListView.selection property.
Requirements
|
Minimum supported client | Windows 8 [Windows Store apps only] |
|---|---|
|
Minimum supported server | Windows Server 2012 [Windows Store apps only] |
|
Namespace |
WinJS.UI |
Build date: 12/5/2012