Android.Views.Accessibility.AccessibilityNodeInfo.SetTextSelection Method
Sets the text selection start and end.

Syntax

[Android.Runtime.Register("setTextSelection", "(II)V", "GetSetTextSelection_IIHandler")]
public virtual void SetTextSelection (int start, int end)

Parameters

start
The text selection start.
end
The text selection end.

Exceptions

TypeReason
Java.Lang.IllegalStateExceptionIf called from an AccessibilityService.

Remarks

Sets the text selection start and end.

Note: Cannot be called from an Android.AccessibilityServices.AccessibilityService. This class is made immutable before being delivered to an AccessibilityService.

[Android Documentation]

Requirements

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