Site Map | About Us | Contact Us  
 The same content in Microsoft HTML help file format is included in the download package.

MenuItem Class

Represents a menu item in a menu control.

For a list of all members of this type, see MenuItem Members.

System.Object
   EO.Web.NavigationItem
      EO.Web.BaseMenuItem
         EO.Web.MenuItem

[Visual Basic]
Public Class MenuItem
    Inherits BaseMenuItem
[C#]
public class MenuItem : BaseMenuItem

Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

Remarks

A menu control is made up of a hierarchy of menu items represented by MenuItem objects. A group of menu items that have the same parent menu item forms Submenu of the menu item, and is represented by the MenuGroup object. The group can be accessed by MenuItem.SubMenu property. You can access the parent menu item of the submenu by using MenuGroup.ParentItem property.

Each submenu maintains a collection of child MenuItem objects. You can access this child menu item collection through:

Both properties access the same MenuItemCollection object.

To customized a menu item's appearance and contents:

To... Use...
Specifies the menu item text Use MenuItem.Text.Html
Specifies the menu item icons use MenuItem.LeftIcon and MenuItem.RightIcon property.
Specifies menu item styles Use MenuItem.NormalStyle, MenuItem.HoverStyle, MenuItem.ExpandedStyle, MenuItem.SelectedStyle, MenuItem.SelectedHoverStyle, MenuItem.SelectedExpandedStyle, MenuItem.DisabledStyle property
Navigate pages Use MenuItem.NavigateUrl property

See using menu item for more details.

Requirements

Namespace: EO.Web

Assembly: EO.Web (in EO.Web.dll)

See Also

MenuItem Members | EO.Web Namespace | MenuGroup | Menu


Direct link to this topic