Share via


LineDisplayProperties.CursorType Property

2/27/2008

Holds the cursor type for the current window.

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

Syntax

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

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

public function set CursorType (value : DisplayCursors)

Remarks

CursorType can’t be set if the CapCursorType property is set to either None or Fixed. Otherwise, CursorType can be set to one of the cursor types specified by CapCursorType. If supported, the setting of Blink can be logically combined with that cursor type to display a blinking cursor.

CursorType is maintained for each window. Setting CursorType affects only the current window, because only the current window has a displayable cursor.

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

Value

Meaning

Illegal

One of the following conditions has occurred:

The CapCursorType property is set to either None or Fixed, so CursorType shouldn’t be set;

CursorType was set to a value other than None but doesn’t match the setting for CapCursorType;

CursorType was set to Blink, but blinking isn’t supported; or

CursorType was set to a value other than Blink which isn’t defined in the DisplayCursors enumeration.

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.CursorType Property