Share via


LampArray.IsEnabled Property

Definition

Gets or sets the enabled state.

public:
 property bool IsEnabled { bool get(); void set(bool value); };
bool IsEnabled();

void IsEnabled(bool value);
public bool IsEnabled { get; set; }
var boolean = lampArray.isEnabled;
lampArray.isEnabled = boolean;
Public Property IsEnabled As Boolean

Property Value

Boolean

bool

True if the device is enabled; otherwise false.

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

When disabled, state for a lamp index can be set internally, but will not be sent to the device. When set back to enabled, modified state is flushed to the device.

By default, LampArray is always enabled.

Applies to

See also