Partager via


IXRSelector::GetSelectedIndex (Windows Embedded CE 6.0)

1/6/2010

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

Syntax

virtual HRESULT STDMETHODCALLTYPE GetSelectedIndex(
    int *pValue
) = 0;

Parameters

  • pValue
    [out] Pointer to an 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::GetSelectedIndex or IXRSelector::GetSelectedItem to retrieve the selected item from application code.

.NET Framework Equivalent

System.Windows.Controls.Primitives.Selector.SelectedIndex

Requirements

Header XamlRuntime.h
sysgen SYSGEN_XAML_RUNTIME
Windows Embedded CE Windows Embedded CE 6.0 R3

See Also

Reference

IXRSelector
IXRSelector::SetSelectedIndex