Class CssExtensions

CSS related html helper extensions

Inheritance
System.Object
CssExtensions
Inherited Members
System.Object.ToString()
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.Web.Mvc.Html
Assembly: EPiServer.Shell.dll
Version: 8.11.0
Syntax
public static class CssExtensions

Methods

Renders a CSS link tag from a site center relative css file path.

Declaration
public static string ShellCssLink(this HtmlHelper html, string shellRelativePath)
Parameters
Type Name Description
System.Web.Mvc.HtmlHelper html

The html helper to hook the helper on.

System.String shellRelativePath

A path relative from the shell base ui path.

Returns
Type Description
System.String

A link html tag.

ThemeClass(HtmlHelper)

Returns the the theme class supposed to be used in the documents body tag for based on the dojo theming model

Declaration
public static string ThemeClass(this HtmlHelper html)
Parameters
Type Name Description
System.Web.Mvc.HtmlHelper html

The html helper to hook the helper on.

Returns
Type Description
System.String

The configured theme class string.