LampArrayBlinkEffect.Occurrences 属性

定义

此效果将发挥的出现次数。

public:
 property int Occurrences { int get(); void set(int value); };
int Occurrences();

void Occurrences(int value);
public int Occurrences { get; set; }
var int32 = lampArrayBlinkEffect.occurrences;
lampArrayBlinkEffect.occurrences = int32;
Public Property Occurrences As Integer

属性值

Int32

int

默认值为 0。

示例

LampArray 示例

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

AutoRGB 示例

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

注解

如果 RepetitionMode 为 Forever,则忽略此内容。

追加 (看到将) 效果 追加LampArrayEffectPlaylist 后,此属性的值将被锁定,你无法再更改它。

适用于

另请参阅