Share via


LineDisplayBase.CursorType Property

2/27/2008

Holds the cursor type for the current window. Possible values are defined by the DisplayCursors enumeration.

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

Syntax

'Declaration
Public Overrides Property CursorType As DisplayCursors
public override DisplayCursors CursorType { get; set; }
public:
virtual property DisplayCursors CursorType {
    DisplayCursors get () override;
    void set (DisplayCursors value) override;
}
/** @property */
public DisplayCursors get_CursorType ()

/** @property */
public void set_CursorType (DisplayCursors value)
public override function get CursorType () : DisplayCursors

public override function set CursorType (value : DisplayCursors)

Remarks

LineDisplayBase class verifies that the device has been opened, then retrieves or sets the value of LineDisplayProperties.CursorType, which is the CursorType value for the service object’s current window. When an attempt is made to set CursorType, LineDisplayProperties class may throw a PosControlException with the following ErrorCode:

Value

Meaning

Illegal

  • If the CapCursorType property is set to either DisplayCursors.None or DisplayCursors.Fixed;

  • If the specified value is DisplayCursors.Blink and blinking isn’t supported;

  • If the specified value isn’t a valid DisplayCursors value; or

  • If the specified value isn’t one of the values specified for the CapCursorType property.

When the value of CursorType changes, the LineDisplayBase class queues a CursorTypeChangedEvent event to the service object.

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

LineDisplayBase Class
LineDisplayBase Members
Microsoft.PointOfService.BaseServiceObjects Namespace
LineDisplay.CursorType Property
DisplayCursors Enumeration
LineDisplay.CapCursorType Property
CursorTypeChangedEvent