Поделиться через


IXRSelector::GetSelectedIndex (Compact 2013)

3/28/2014

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

Syntax

virtual HRESULT STDMETHODCALLTYPE GetSelectedIndex(
    __out int *pSelectedIndex
) = 0;

Parameters

  • pSelectedIndex
    [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. To retrieve the selected item, call IXRSelector::GetSelectedIndex to obtain the index of the selected item and pass that index to IXRSelector::GetSelectedItem.

.NET Framework Equivalent

System.Windows.Controls.Primitives.Selector.SelectedIndex

Requirements

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

IXRSelector
IXRSelector::SetSelectedIndex