November Happy Hour will be moved to Thursday December 5th.

Class MenuItem

Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Shell.Navigation
Assembly: EPiServer.Shell.dll
Version: 11.20.7
Syntax
public abstract class MenuItem

Constructors

MenuItem(String, String)

Declaration
protected MenuItem(string text, string path)
Parameters
Type Name Description
System.String text
System.String path

Properties

Alignment

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

CssClass

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

Depth

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

ExcludeFromSearch

Declaration
public bool ExcludeFromSearch { get; set; }
Property Value
Type Description
System.Boolean

IsAvailable

Declaration
public Func<RequestContext, bool> IsAvailable { get; set; }
Property Value
Type Description
System.Func<System.Web.Routing.RequestContext, System.Boolean>

IsLeaf

Declaration
public virtual bool IsLeaf { get; }
Property Value
Type Description
System.Boolean

IsStyled

Declaration
public bool IsStyled { get; set; }
Property Value
Type Description
System.Boolean

NodeCssClass

Declaration
protected virtual string NodeCssClass { get; }
Property Value
Type Description
System.String

Path

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

SortIndex

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

Target

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

Text

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

ToolTip

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

Url

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

Methods

IsSelected(RequestContext)

Declaration
public virtual bool IsSelected(RequestContext requestContext)
Parameters
Type Name Description
System.Web.Routing.RequestContext requestContext
Returns
Type Description
System.Boolean

RenderContents(TextWriter)

Declaration
protected virtual void RenderContents(TextWriter writer)
Parameters
Type Name Description
System.IO.TextWriter writer

ToString()

Declaration
public override string ToString()
Returns
Type Description
System.String
Overrides
System.Object.ToString()

Extension Methods