Share via


MenuItem.Checked property

Gets or sets whether to visually display a check mark next to the menu item.

Namespace:  Microsoft.SharePoint.WebPartPages
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Property Checked As Boolean
    Get
    Set
'Usage
Dim instance As MenuItem
Dim value As Boolean

value = instance.Checked

instance.Checked = value
public bool Checked { get; set; }

Property value

Type: System.Boolean
true to display a check mark next to the menu item; otherwise, false. The default is false.

See also

Reference

MenuItem class

MenuItem members

Microsoft.SharePoint.WebPartPages namespace