BaseKeyListener.Backspace(View, IEditable, Keycode, KeyEvent) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Performs the action that happens when you press the KeyEvent#KEYCODE_DEL
key in
a TextView
.
[Android.Runtime.Register("backspace", "(Landroid/view/View;Landroid/text/Editable;ILandroid/view/KeyEvent;)Z", "GetBackspace_Landroid_view_View_Landroid_text_Editable_ILandroid_view_KeyEvent_Handler")]
public virtual bool Backspace (Android.Views.View? view, Android.Text.IEditable? content, Android.Views.Keycode keyCode, Android.Views.KeyEvent? e);
[<Android.Runtime.Register("backspace", "(Landroid/view/View;Landroid/text/Editable;ILandroid/view/KeyEvent;)Z", "GetBackspace_Landroid_view_View_Landroid_text_Editable_ILandroid_view_KeyEvent_Handler")>]
abstract member Backspace : Android.Views.View * Android.Text.IEditable * Android.Views.Keycode * Android.Views.KeyEvent -> bool
override this.Backspace : Android.Views.View * Android.Text.IEditable * Android.Views.Keycode * Android.Views.KeyEvent -> bool
Parameters
- view
- View
- content
- IEditable
- keyCode
- Keycode
- e
- KeyEvent
Returns
true if anything was deleted; false otherwise.
- Attributes
Remarks
Performs the action that happens when you press the KeyEvent#KEYCODE_DEL
key in a TextView
. If there is a selection, deletes the selection; otherwise, deletes the character before the cursor, if any; ALT+DEL deletes everything on the line the cursor is on.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.