MenuItem Properties

Include Protected Members
Include Inherited Members

The MenuItem type exposes the following members.

Properties

  Name Description
Public property BeginSection Gets or sets whether to create or delete a separator line above a menu item.
Public property Caption Gets or sets the text caption that is displayed for the menu item.
Public property Checked Gets or sets whether to visually display a check mark next to the menu item.
Public property ClientEvent Gets or sets the client-side Microsoft JScript code to execute when this menu item is clicked.
Public property Enabled Gets or sets whether the menu item is enabled.
Public property IsParent Gets whether the menu item contains child menu items.
Public property MenuID Gets or sets the unique identifier for a Web Part menu item. Token replacement is allowed.
Public property MenuItems Gets the collection of MenuItem objects for a submenu.
Public property OnClick Gets or sets the server-side function to execute for server-side menu items.
Public property Visible Gets or sets whether a menu item is displayed.

Top

See Also

Reference

MenuItem Class

Microsoft.SharePoint.WebPartPages Namespace