CursorX Property  

Gets and sets the current cursor position in the display.


object.CursorX [= column ]


The CursorX property returns the current position of the cursor in the display, or can be used to change the current position. The current position is given in columns and indicates where the next text character will be displayed. To calculate the pixel offset where the cursor is located in the control window, multiply this value by the CellWidth property value.

Data Type

Integer (Int32)

See Also

CellWidth Property, Cursor Property, CursorStyle Property, CursorY Property, MouseX Property, MouseY Property