Android.Views.IMenuItem.SetChecked Method
Control whether this item is shown with a check mark.

Syntax

[Android.Runtime.Register("setChecked", "(Z)Landroid/view/MenuItem;", "GetSetChecked_ZHandler:Android.Views.IMenuItemInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public IMenuItem SetChecked (bool checked)

See Also

IMenuItem.SetCheckable(bool)
IMenuItem.IsChecked

Parameters

checked
Set to true to display a check mark, false to hide it. The default value is false.

Returns

Documentation for this section has not yet been entered.

Remarks

Control whether this item is shown with a check mark. Note that you must first have enabled checking with IMenuItem.SetCheckable(bool) or else the check mark will not appear. If this item is a member of a group that contains mutually-exclusive items (set via Menu.setGroupCheckable(int, boolean, boolean), the other items in the group will be unchecked.

See Android.Views.Menu for the menu types that support check marks.

[Android Documentation]

Requirements

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