LampArrayEffectPlaylist.IndexOf(ILampArrayEffect, UInt32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Retrieves the index, within a playlist, of the specified lamp array effect.
public:
virtual bool IndexOf(ILampArrayEffect ^ value, [Out] unsigned int & index) = IVectorView<ILampArrayEffect ^>::IndexOf;
bool IndexOf(ILampArrayEffect const& value, [Out] uint32_t & index);
public bool IndexOf(ILampArrayEffect value, out uint index);
Public Function IndexOf (value As ILampArrayEffect, ByRef index As UInteger) As Boolean
Parameters
- value
- ILampArrayEffect
An ILampArrayEffect representing the lamp array effect whose index to retrieve.
- index
-
UInt32
unsigned int
uint32_t
The index of the effect within the playlist, as an out parameter. If the value is found, then the method will update index with the zero-based index of the effect within the playlist.
Returns
bool
true
if the effect is found, otherwise false
.
Implements
1.IndexOf(
0,System.UInt32@)
M:Windows.Foundation.Collections.IVectorView1.IndexOf(
0,unsigned int@)
M:Windows.Foundation.Collections.IVectorView1.IndexOf(
0,uint32_t@)
Examples
Demonstrates how to control RGB lighting of peripheral devices using the Windows.Devices.Lights and Windows.Devices.Lights.Effects APIs.
Demonstrates how to extract a single, representative color from a desktop screen and use it to illuminate LED lamps on a connected RGB device.