LampArrayEffectPlaylist.IndexOf(ILampArrayEffect, UInt32) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
检索指定灯阵列效果的播放列表中的索引。
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
参数
- value
- ILampArrayEffect
一个 ILampArrayEffect,表示要检索其索引的灯阵列效果。
- index
-
UInt32
unsigned int
uint32_t
播放列表中效果的索引,作为 out 参数。 如果找到 该值 ,则 方法将使用播放列表中效果的从零开始的 索引更新索引 。
返回
Boolean
bool
true 如果找到效果,则为 ;否则为 false。
实现
M:Windows.Foundation.Collections.IVectorView
1.IndexOf(0,System.UInt32@)
M:Windows.Foundation.Collections.IVectorView1.IndexOf(0,unsigned int@)
M:Windows.Foundation.Collections.IVectorView1.IndexOf(0,uint32_t@)
示例
演示如何使用 Windows.Devices.Lights 和 Windows.Devices.Lights.Effects API 控制外围设备的 RGB 照明。
演示如何从桌面屏幕中提取具有代表性的单一颜色,并使用它来照亮连接的 RGB 设备上的 LED 灯。