ISelectionInfo ISelectionInfo ISelectionInfo ISelectionInfo Interface

Definition

Manages whether items and ranges of items in the data source are selected in the list control.

public : interface ISelectionInfopublic interface ISelectionInfoPublic Interface ISelectionInfo// This API is not available in Javascript.
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Remarks

The ISelectionInfo interface supports virtualization of large data sources for efficient presentation by XAML list controls. The other classes and interfaces that support data source virtualization are the following.

Methods

DeselectRange(ItemIndexRange) DeselectRange(ItemIndexRange) DeselectRange(ItemIndexRange) DeselectRange(ItemIndexRange)

Marks the items in the data source specified by itemIndexRange as not selected in the list control.

public : void DeselectRange(ItemIndexRange itemIndexRange)public void DeselectRange(ItemIndexRange itemIndexRange)Public Function DeselectRange(itemIndexRange As ItemIndexRange) As void// This API is not available in Javascript.
Parameters
itemIndexRange
ItemIndexRange ItemIndexRange ItemIndexRange ItemIndexRange

A range of items in the data source.

GetSelectedRanges() GetSelectedRanges() GetSelectedRanges() GetSelectedRanges()

Returns the collection of ranges of items in the data source that are selected in the list control.

public : IVectorView<ItemIndexRange> GetSelectedRanges()public IReadOnlyList<ItemIndexRange> GetSelectedRanges()Public Function GetSelectedRanges() As IReadOnlyList( Of ItemIndexRange )// This API is not available in Javascript.
Returns
IVectorView<ItemIndexRange> IReadOnlyList<ItemIndexRange> IReadOnlyList<ItemIndexRange> IReadOnlyList<ItemIndexRange>

A collection of ranges of items in the data source that are selected in the list control..

IsSelected(Int32) IsSelected(Int32) IsSelected(Int32) IsSelected(Int32)

Provides info about whether the item in the data source at the specified index is selected in the list control.

public : PlatForm::Boolean IsSelected(int index)public bool IsSelected(Int32 index)Public Function IsSelected(index As Int32) As bool// This API is not available in Javascript.
Parameters
index
int Int32 Int32 Int32

The index of an item in the data source.

Returns
PlatForm::Boolean bool bool bool

true if the item in the data source at the specified index is selected in the list control; otherwise, false.

SelectRange(ItemIndexRange) SelectRange(ItemIndexRange) SelectRange(ItemIndexRange) SelectRange(ItemIndexRange)

Marks the items in the data source specified by itemIndexRange as selected in the list control.

public : void SelectRange(ItemIndexRange itemIndexRange)public void SelectRange(ItemIndexRange itemIndexRange)Public Function SelectRange(itemIndexRange As ItemIndexRange) As void// This API is not available in Javascript.
Parameters
itemIndexRange
ItemIndexRange ItemIndexRange ItemIndexRange ItemIndexRange

A range of items in the data source.

See Also