Share via


LineDisplayProperties.DeviceBrightness Property

2/27/2008

Holds the device brightness value, expressed as a percentage between 0 and 100.

Namespace: Microsoft.PointOfService.BaseServiceObjects
Assembly: Microsoft.PointOfService.ControlBase (in microsoft.pointofservice.controlbase.dll)

Syntax

'Declaration
Public Property DeviceBrightness As Integer
public int DeviceBrightness { get; set; }
public:
property int DeviceBrightness {
    int get ();
    void set (int value);
}
/** @property */
public int get_DeviceBrightness ()

/** @property */
public void set_DeviceBrightness (int value)
public function get DeviceBrightness () : int

public function set DeviceBrightness (value : int)

Remarks

Any device can support 0% (blank) and 100% (full intensity). The service object can also support blanking by sending spaces to the device. If the CapBrightness property is set to true, then the device also supports one or more levels of dimming.

If the line display device does not support the brightness value specified by the application, then the service object will choose an appropriate substitute.

DeviceBrightness is typically initialized to 100.

Accessing DeviceBrightness may cause a PosControlException to be thrown with the following ErrorCode:

Value

Meaning

Illegal

One of the following conditions has occurred:

The CapBrightness property is set to false, indicating the device doesn’t support the setting of brightness values, but DeviceBrightness was set to a value other than 100; or

DeviceBrightness was set to a value less than 0 (zero) or greater than 100.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread-safe. Any instance members are not guaranteed to be thread-safe.

See Also

Reference

LineDisplayProperties Class
LineDisplayProperties Members
Microsoft.PointOfService.BaseServiceObjects Namespace
LineDisplayBase.DeviceBrightness Property