Share via


IMenuItem.SetAlphabeticShortcut Method

Definition

Overloads

SetAlphabeticShortcut(Char, Int32)

Change the alphabetic shortcut associated with this item.

SetAlphabeticShortcut(Char)

Change the alphabetic shortcut associated with this item.

SetAlphabeticShortcut(Char, Int32)

Change the alphabetic shortcut associated with this item.

[Android.Runtime.Register("setAlphabeticShortcut", "(CI)Landroid/view/MenuItem;", "GetSetAlphabeticShortcut_CIHandler:Android.Views.IMenuItem, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=26)]
public virtual Android.Views.IMenuItem SetAlphabeticShortcut (char alphaChar, int alphaModifiers);
[<Android.Runtime.Register("setAlphabeticShortcut", "(CI)Landroid/view/MenuItem;", "GetSetAlphabeticShortcut_CIHandler:Android.Views.IMenuItem, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=26)>]
abstract member SetAlphabeticShortcut : char * int -> Android.Views.IMenuItem
override this.SetAlphabeticShortcut : char * int -> Android.Views.IMenuItem

Parameters

alphaChar
Char

The alphabetic shortcut key. This is the shortcut when using a keyboard with alphabetic keys.

alphaModifiers
Int32

The modifier associated with the shortcut. It should be a combination of KeyEvent#META_META_ON, KeyEvent#META_CTRL_ON, KeyEvent#META_ALT_ON, KeyEvent#META_SHIFT_ON, KeyEvent#META_SYM_ON, KeyEvent#META_FUNCTION_ON.

Returns

This Item so additional setters can be called.

Attributes

Remarks

Change the alphabetic shortcut associated with this item. The shortcut will be triggered when the key that generates the given character is pressed along with the modifier keys. Case is not significant and shortcut characters will be displayed in lower case. Note that menu items with the characters '\b' or '\n' as shortcuts will get triggered by the Delete key or Carriage Return key, respectively.

See Menu for the menu types that support shortcuts.

Java documentation for android.view.MenuItem.setAlphabeticShortcut(char, int).

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.

Applies to

SetAlphabeticShortcut(Char)

Change the alphabetic shortcut associated with this item.

[Android.Runtime.Register("setAlphabeticShortcut", "(C)Landroid/view/MenuItem;", "GetSetAlphabeticShortcut_CHandler:Android.Views.IMenuItemInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public Android.Views.IMenuItem SetAlphabeticShortcut (char alphaChar);
[<Android.Runtime.Register("setAlphabeticShortcut", "(C)Landroid/view/MenuItem;", "GetSetAlphabeticShortcut_CHandler:Android.Views.IMenuItemInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member SetAlphabeticShortcut : char -> Android.Views.IMenuItem

Parameters

alphaChar
Char

The alphabetic shortcut key. This is the shortcut when using a keyboard with alphabetic keys.

Returns

This Item so additional setters can be called.

Attributes

Remarks

Change the alphabetic shortcut associated with this item. The shortcut will be triggered when the key that generates the given character is pressed along with the corresponding modifier key. The default modifier is KeyEvent#META_CTRL_ON in case nothing is specified. Case is not significant and shortcut characters will be displayed in lower case. Note that menu items with the characters '\b' or '\n' as shortcuts will get triggered by the Delete key or Carriage Return key, respectively.

See Menu for the menu types that support shortcuts.

Java documentation for android.view.MenuItem.setAlphabeticShortcut(char).

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.

Applies to