Compartilhar via


IXRSelector::SetSelectedIndex (Compact 2013)

3/28/2014

This method sets the index of the selected item in the list.

Syntax

virtual HRESULT STDMETHODCALLTYPE SetSelectedIndex(
    __in int SelectedIndex
) = 0;

Parameters

  • SelectedIndex
    [in] Integer value that indicates the index of the selected item in the list.

Return Value

Returns an HRESULT that indicates success or failure.

Remarks

IXRSelector does not allow more than one item to be selected at a time. You can use IXRSelector::SetSelectedIndex or IXRSelector::SetSelectedItem to set the selected item.

.NET Framework Equivalent

System.Windows.Controls.Primitives.Selector.SelectedIndex

Requirements

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

IXRSelector
IXRSelector::GetSelectedIndex