Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TextEditBase.CursorPosition Property

Gets or sets the cursor position. This is a bindable property.

Namespace: DevExpress.Maui.Editors

Assembly: DevExpress.Maui.Editors.dll

NuGet Package: DevExpress.Maui.Editors

#Declaration

C#
public int CursorPosition { get; set; }

#Property Value

Type Default Description
Int32 0

A zero-based index that specifies the position of the cursor in text.

#Remarks

Use the following properties to manage the cursor position and text selection:

Property

Description

CursorPosition

Gets or sets the cursor position. This is a bindable property.

SelectionStart

Gets a character index at which the selection starts. This is a bindable property.

SelectionLength

Gets the number of selected characters. This is a bindable property.

DevExpress MAUI TextEdit - Selected

You can also use the SelectAll(), SetSelection(Int32), and SetSelection(Int32, Int32) methods to select text.

See Also