> ## 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.

# ILampInfo::GetIndex

> ILampInfo::GetIndex

# ILampInfo::GetIndex

指定した Lamp が存在する LampArray 内のインデックスを返します。

## 構文

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

### パラメーター

このメソッドにはパラメーターがありません。

### 戻り値

Type: uint32\_t

Lamp の LampArray 内のインデックスです。

## 解説

有効な Lamp インデックスは、0 から [ILampArray::GetLampCount](/reference/lighting/lamparray/interfaces/ilamparray/methods/ilamparray_getlampcount) - 1 までの範囲です。

## 要件

**ヘッダー:** LampArray.h

**ライブラリ:** xgameplatform.lib

**サポートされているプラットフォーム:** XBOX One ファミリ本体および XBOX Series 本体

## 関連項目

[Lighting API の概要](/build/core-features/common/lighting/gc-lighting-toc)\
[ILampArray::GetLampInfo](/reference/lighting/lamparray/interfaces/ilamparray/methods/ilamparray_getlampinfo)\
[ILampInfo](/reference/lighting/lamparray/interfaces/ilampinfo/ilampinfo)


## Related topics

- [ILampInfo::GetPosition](/ja-jp/reference/lighting/lamparray/interfaces/ilampinfo/methods/ilampinfo_getposition.md)
- [ILampInfo::GetPurposes](/ja-jp/reference/lighting/lamparray/interfaces/ilampinfo/methods/ilampinfo_getpurposes.md)
- [ILampInfo::GetNearestSupportedColor](/ja-jp/reference/lighting/lamparray/interfaces/ilampinfo/methods/ilampinfo_getnearestsupportedcolor.md)
- [ILampInfo::GetFixedColor](/ja-jp/reference/lighting/lamparray/interfaces/ilampinfo/methods/ilampinfo_getfixedcolor.md)
- [ILampInfo::GetScanCode](/ja-jp/reference/lighting/lamparray/interfaces/ilampinfo/methods/ilampinfo_getscancode.md)
