Html helper used to add styles.
Methods
AddStyle
(IHtmlHelper, WellKnownScripts) Method
AddStyle (IHtmlHelper htmlHelper, WellKnownScripts script)
Add a well-known script.
AddStyle
(ViewContext, WellKnownScripts) Method
AddStyle (ViewContext context, WellKnownScripts script)
Add a well-known script.
AddStyle
(IHtmlHelper, String) Method
AddStyle (IHtmlHelper htmlHelper, String stylesheetPath)
Register the specified style to be added to the Layout or module's CSS styles.
Examples
@Html.AddScript("~#/MyModule.css")
AddStyle
(IHtmlHelper, String, Int32) Method
AddStyle (IHtmlHelper htmlHelper, String stylesheetPath, Int32 sortIndex)
Register the specified style to be added to the Layout or module's CSS styles.
AddStyle
(IHtmlHelper, String, Boolean) Method
AddStyle (IHtmlHelper htmlHelper, String stylesheetPath, Boolean defer)
Register the specified style to be added to the Layout or module's CSS styles.
Examples
@Html.AddScript(~#/MyModule.css)
AddStyle
(IHtmlHelper, String, Boolean, Boolean) Method
AddStyle (IHtmlHelper htmlHelper, String stylesheetPath, Boolean defer, Boolean isDynamic)
Register the specified style to be added to the Layout or module's CSS styles.
Examples
@Html.AddScript(~#/MyModule.css)
AddStyle
(IHtmlHelper, String, Boolean, Boolean, String, Int32) Method
AddStyle (IHtmlHelper htmlHelper, String stylesheetPath, Boolean defer, Boolean isDynamic, String version, Int32 sortIndex)
Register the specified style to be added to the Layout or module's CSS styles.
Examples
@Html.AddScript(~#/MyModule.css)
AddStyle
(ViewContext, String, Boolean, Boolean, String, Int32) Method
AddStyle (ViewContext context, String stylesheetPath, Boolean defer, Boolean isDynamic, String version, Int32 sortIndex)
Register the specified style to be added to the Layout or module's CSS styles.
Examples
@Html.AddScript(~#/MyModule.css)
RenderStyles
(IHtmlHelper) Method
RenderStyles (IHtmlHelper htmlHelper)
Adds the scripts submitted by AddStyle to the layout. This method is intended for use by the Nucleus Core layout.