Share via


LampArrayBlinkEffect.ZIndex Property

Definition

Gets or sets the global precedence (across all playlists) for two effects that modify the same lamp (on the same LampArray).

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

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

Property Value

Int32

int

Global precedence value. Default value is 0.

Implements

Examples

LampArray sample

Demonstrates how to control RGB lighting of peripheral devices using the Windows.Devices.Lights and Windows.Devices.Lights.Effects APIs.

AutoRGB Sample

Demonstrates how to extract a single, representative color from a desktop screen and use it to illuminate LED lamps on a connected RGB device.

Remarks

Higher zIndex implies higher precedence.

If two effects with the same zIndex operate on the same lamp (via two separate LampArrayEffectPlaylists), the behaviour is undefined.

After you've appended (see Append) an effect to a LampArrayEffectPlaylist, the value of this property is locked, and you can no longer change it.

Applies to

See also