Class MenuItemElement

Represents a menu item that is added to the menu

Inheritance
System.Object
MenuItemElement
Namespace: EPiServer.Shell.Configuration
Assembly: EPiServer.Shell.dll
Version: 8.11.0
Syntax
public class MenuItemElement : ConfigurationElement

Constructors

MenuItemElement()

Declaration
public MenuItemElement()

Properties

Alignment

Menu item alignment

Declaration
public MenuItemAlignment Alignment { get; set; }
Property Value
Type Description
MenuItemAlignment

MenuItemType

The target url of this menu item.

Declaration
public MenuItemType MenuItemType { get; set; }
Property Value
Type Description
MenuItemType

MenuPath

The menu path/key of this menu item. The path defines the structure and is also the unique key to this menu item.

Declaration
public string MenuPath { get; set; }
Property Value
Type Description
System.String

SortIndex

The sort index of this menu item. Menu items are sorted from low to high within each section.

Declaration
public int SortIndex { get; set; }
Property Value
Type Description
System.Int32

Target

The menu link target frame.

Declaration
public string Target { get; set; }
Property Value
Type Description
System.String

Text

The menu text

Declaration
public string Text { get; set; }
Property Value
Type Description
System.String

Url

The target url of this menu item.

Declaration
public string Url { get; set; }
Property Value
Type Description
System.String

Methods

CreateMenuItem()

Creates the menu item.

Declaration
public MenuItem CreateMenuItem()
Returns
Type Description
MenuItem