> ## 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étodo ILampInfo::GetIndex

> Retorna o índice numérico de uma Lamp dentro do LampArray pai, permitindo que os títulos mapeiem um ILampInfo de volta para o índice usado pelos métodos de ILampArray.

# ILampInfo::GetIndex

Retorna o índice no LampArray em que a lâmpada especificada está localizada.

## Sintaxe

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

### Parâmetros

Este método não tem parâmetros.

### Valor retornado

Tipo: uint32\_t

O índice da Lamp no LampArray.

## Comentários

Os índices de lâmpada válidos estão no intervalo de 0 a [ILampArray::GetLampCount](/pt-BR/reference/lighting/lamparray/interfaces/ilamparray/methods/ilamparray_getlampcount) - 1.

## Requisitos

**Cabeçalho:** LampArray.h

**Biblioteca:** xgameplatform.lib

**Plataformas com suporte:** consoles da família XBOX One e consoles XBOX Series

## Confira também

[Visão geral da API de iluminação](/pt-BR/build/core-features/common/lighting/gc-lighting-toc)\
[ILampArray::GetLampInfo](/pt-BR/reference/lighting/lamparray/interfaces/ilamparray/methods/ilamparray_getlampinfo)\
[ILampInfo](/pt-BR/reference/lighting/lamparray/interfaces/ilampinfo/ilampinfo)


## Related topics

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