Android.Views.InputMethods.EditorInfo.InitialSelEnd Property

Syntax

[Android.Runtime.Register("initialSelEnd")]
public int InitialSelEnd { get; set; }

Value

Documentation for this section has not yet been entered.

Remarks

The text offset of the end of the selection at the time editing begins; -1 if not known. Keep in mind that, without knowing the cursor position, many IMEs will not be able to offer their full feature set and may behave in unpredictable ways: pass the actual cursor position here if possible at all.

Also, this needs to be the cursor position right now, not at some point in the past, even if input is starting in the same text field as before. When the app is filling this object, input is about to start by definition, and this value will override any value the app may have passed to InputMethodManager.UpdateSelection(Android.Views.View, System.Int32, System.Int32, System.Int32, System.Int32) before.

[Android Documentation]

Requirements

Namespace: Android.Views.InputMethods
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 3