MenuItem Members

Include Protected Members
Include Inherited Members

Used to create and modify the behavior of items on a Web Part menu.

The MenuItem type exposes the following members.

Constructors

  Name Description
Public method MenuItem(String, String) Initializes a new instance of the MenuItem class.
Public method MenuItem(String, String, EventHandler) Initializes a new instance of the MenuItem class.
Public method MenuItem(String, String, String) Initializes a new instance of the MenuItem class.

Top

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

Methods

  Name Description
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method ToString (Inherited from Object.)

Top

See Also

Reference

MenuItem Class

Microsoft.SharePoint.WebPartPages Namespace