Xceed Toolkit for Maui v2.0 Documentation
CursorPosition Property


Xceed.Maui.Toolkit Assembly > Xceed.Maui.Toolkit Namespace > TextBox Class : CursorPosition Property
Gets or sets the position of the cursor when editing Text in the TextBox.
Syntax
'Declaration
 
Public Property CursorPosition As Integer
'Usage
 
Dim instance As TextBox
Dim value As Integer
 
instance.CursorPosition = value
 
value = instance.CursorPosition
public int CursorPosition {get; set;}
Remarks

The value of this property must be greater than or equal to 0.

A value of 0 will position the cursor before the first character in the TextBox, while a value of 1 will position it after the first character; following this logic, a value of 2 will position the cursor after the second character in the TextBox, a value of 3 after the third character and so on & so forth.

Requirements

Target Platforms: Windows 11, Windows 10, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

TextBox Class
TextBox Members