Datalogic .NET SDK

DisplayBkltEnable (Method)

 

Syntax

 

   public static DisplayBacklight DisplayBkltEnable(DisplayBacklight Enable);

 

 

Class                           : Device

Namespace                : Datalogic.API

Assembly                   : Datalogic.API.DLL

 

 

Description

Enables/disables the backlight. This method does not control brightness.

 

 

Parameters Table

 

Type

Parameter

Description

[in]

DisplayBacklight

Enable

A Device.DisplayBacklight enumeration that specifies the whether or not the backlight will be enabled/disabled.

 

 

 

 

[returns]

DisplayBacklight

 

The status of the backlight is retuned on success.

[on error]

Device.DisplayBacklight.Error

 

 

 

 

Example

 

       private void btnBklEnable_Click(object sender, EventArgs e)

      {

            Device.DisplayBacklight ENUM_BacklightStateAfterChange = Device.DisplayBacklight.Error;

 

            ENUM_BacklightState = Device.DisplayGetBkltState();

 

            switch (ENUM_BacklightState)

            {

                case Device.DisplayBacklight.Disable:

                    ENUM_BacklightStateAfterChange = Device.DisplayBkltEnable(Device.DisplayBacklight.Enable);

                    break;

                case Device.DisplayBacklight.Enable:

                    ENUM_BacklightStateAfterChange = Device.DisplayBkltEnable(Device.DisplayBacklight.Disable);

                    break;

                case Device.DisplayBacklight.Error:

                    txtBkltStatus.Text = "No action performed";

                    break;

                default:

                    txtBkltStatus.Text = "No action performed";

                    break;

            }

       }

 

 

 

 

See Also

Device.DisplayBacklight (Enum), Example #030.

 

Copyright © Datalogic ADC. All Right Reserved