LampArrayEffectPlaylist.GetMany(UInt32, ILampArrayEffect[]) 方法

定义

检索一系列灯阵列效果,从播放列表中的指定索引开始。

public:
 virtual unsigned int GetMany(unsigned int startIndex, Platform::Array <ILampArrayEffect ^> ^ items) = IVectorView<ILampArrayEffect ^>::GetMany;
uint32_t GetMany(uint32_t const& startIndex, winrt::array_view <ILampArrayEffect const&> & items);
public uint GetMany(uint startIndex, ILampArrayEffect[] items);
function getMany(startIndex, items)
Public Function GetMany (startIndex As UInteger, items As ILampArrayEffect()) As UInteger

参数

startIndex
UInt32

unsigned int

uint32_t

要检索的第一个灯阵列效果的从零开始的索引。

items
ILampArrayEffect[]

一个 ILampArrayEffect 数组,该方法将使用请求的效果进行更新。

返回

UInt32

unsigned int

uint32_t

中返回的效果数。

实现

M:Windows.Foundation.Collections.IVectorView1.GetMany(System.UInt32,0[]) M:Windows.Foundation.Collections.IVectorView1.GetMany(unsigned int,0[]) M:Windows.Foundation.Collections.IVectorView1.GetMany(uint32_t,0[])

示例

LampArray 示例

演示如何使用 Windows.Devices.Lights 和 Windows.Devices.Lights.Effects API 控制外围设备的 RGB 照明。

AutoRGB 示例

演示如何从桌面屏幕中提取具有代表性的单一颜色,并使用它来照亮连接的 RGB 设备上的 LED 灯。

适用于

另请参阅