> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Méthode ILampInfo::GetIndex

> Retourne l'indice numérique d'un Lamp au sein de son LampArray parent, ce qui permet aux titres de faire correspondre un ILampInfo à l'indice utilisé par les méthodes ILampArray.

# ILampInfo::GetIndex

Retourne l'indice du LampArray auquel se trouve le Lamp donné.

## Syntaxe

```cpp theme={null}
uint32_t GetIndex(
)
```

### Paramètres

Cette méthode n'a aucun paramètre.

### Valeur de retour

Type : uint32\_t

L'indice du Lamp dans le LampArray.

## Remarques

Les indices de Lamps valides sont compris entre 0 et [ILampArray::GetLampCount](/fr/reference/lighting/lamparray/interfaces/ilamparray/methods/ilamparray_getlampcount) - 1.

## Configuration requise

**En-tête :** LampArray.h

**Bibliothèque :** xgameplatform.lib

**Plateformes prises en charge :** consoles de la famille XBOX One et consoles XBOX Series

## Voir aussi

[Vue d'ensemble de l'API d'éclairage](/fr/build/core-features/common/lighting/gc-lighting-toc)\
[ILampArray::GetLampInfo](/fr/reference/lighting/lamparray/interfaces/ilamparray/methods/ilamparray_getlampinfo)\
[ILampInfo](/fr/reference/lighting/lamparray/interfaces/ilampinfo/ilampinfo)


## Related topics

- [Méthode ILampArray::GetLampInfo](/fr/reference/lighting/lamparray/interfaces/ilamparray/methods/ilamparray_getlampinfo.md)
- [Méthode ILampInfo::GetPurposes](/fr/reference/lighting/lamparray/interfaces/ilampinfo/methods/ilampinfo_getpurposes.md)
- [Méthode ILampInfo::GetPosition](/fr/reference/lighting/lamparray/interfaces/ilampinfo/methods/ilampinfo_getposition.md)
- [Méthode ILampInfo::GetNearestSupportedColor](/fr/reference/lighting/lamparray/interfaces/ilampinfo/methods/ilampinfo_getnearestsupportedcolor.md)
- [Méthode ILampInfo::GetScanCode](/fr/reference/lighting/lamparray/interfaces/ilampinfo/methods/ilampinfo_getscancode.md)
