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)
Available in Sandboxed Solutions: No

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