LampArray.GetIndicesForKey(VirtualKey) 메서드

정의

특정 VirtualKey에 바인딩된 모든 램프 인덱스를 검색합니다.

public:
 virtual Platform::Array <int> ^ GetIndicesForKey(VirtualKey key) = GetIndicesForKey;
winrt::array_view <int> GetIndicesForKey(VirtualKey const& key);
public int[] GetIndicesForKey(VirtualKey key);
function getIndicesForKey(key)
Public Function GetIndicesForKey (key As VirtualKey) As Integer()

매개 변수

반환

Int32[]

int[]

특정 VirtualKey에 바인딩된 모든 램프 인덱스의 배열입니다. VirtualKey에 바인딩된 램프 인덱스가 없으면 배열이 비어 있습니다.

예제

LampArray 샘플

Windows.Devices.Lights 및 Windows.Devices.Lights.Effects API를 사용하여 주변 디바이스의 RGB 조명을 제어하는 방법을 보여 줍니다.

AutoRGB 샘플

데스크톱 화면에서 대표적인 단일 색을 추출하고 이를 사용하여 연결된 RGB 디바이스에서 LED 램프를 비추는 방법을 보여 줍니다.

설명

램프 인덱스는 디바이스에서 단일 키로만 바인딩할 수 있습니다(선택 사항). VirtualKey에는 1개 이상의 인덱스가 바인딩되어 있을 수 있습니다.

적용 대상

추가 정보