Share via


IKeyIndexMapping Interface

Definition

Provides methods that support mapping between an item's unique identifier and index.

This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces).

public interface class IKeyIndexMapping
/// [Microsoft.UI.Xaml.CustomAttributes.MUXContractProperty(version=0)]
/// [Windows.Foundation.Metadata.Guid(2985540512, 4238, 22029, 150, 129, 38, 57, 27, 75, 195, 13)]
/// [Windows.Foundation.Metadata.Version(1)]
struct IKeyIndexMapping
/// [Windows.Foundation.Metadata.Guid(2985540512, 4238, 22029, 150, 129, 38, 57, 27, 75, 195, 13)]
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.UI.Xaml.XamlContract, 65536)]
struct IKeyIndexMapping
[Microsoft.UI.Xaml.CustomAttributes.MUXContractProperty(version=0)]
[Windows.Foundation.Metadata.Guid(2985540512, 4238, 22029, 150, 129, 38, 57, 27, 75, 195, 13)]
[Windows.Foundation.Metadata.Version(1)]
public interface IKeyIndexMapping
[Windows.Foundation.Metadata.Guid(2985540512, 4238, 22029, 150, 129, 38, 57, 27, 75, 195, 13)]
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.UI.Xaml.XamlContract), 65536)]
public interface IKeyIndexMapping
Public Interface IKeyIndexMapping
Attributes
Microsoft.UI.Xaml.CustomAttributes.MUXContractPropertyAttribute GuidAttribute VersionAttribute ContractVersionAttribute

Methods

IndexFromKey(String)

Retrieves the index of the item that has the specified unique identifier (key).

This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces).

KeyFromIndex(Int32)

Retrieves the unique identifier (key) for the item at the specified index.

This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces).

Applies to