AddCssInclude

.AddCssInclude()

Adds a CSS file to the list of includes for the ShareItLibrary.

Method

public static void AddCssInclude(string css, HtmlHelper helper, bool noLibraryPath = false, bool first = false)
public static void AddCssInclude(string css, dynamic viewBag, bool noLibraryPath = false, bool first = false)
string css

The name of the css file to add the header of the page.

HtmlHelper helper

The current HtmlHelper context.

dynamic viewBag

The current HtmlHelper.ViewBag context.

bool noLibraryPath
Default: false

Choose not to use the ShareItLibrary default library path.

bool first
Default: false

Add this item to the start of the list instead of the end.

Example

C#
SiUtil.AddCssInclude("MyCssFile.css", helper);