Class HtmlBuilder
- Namespace
- Shift.Toolbox
- Assembly
- Shift.Toolbox.dll
- Inheritance
-
HtmlBuilder
- Inherited Members
-
- Extension Methods
-
Constructors
public HtmlBuilder(string title, string body)
Parameters
title string
body string
Properties
Body
public StringBuilder Body { get; set; }
Property Value
- StringBuilder
public IEnumerable<string> Scripts { get; }
Property Value
- IEnumerable<string>
public IEnumerable<string> Styles { get; }
Property Value
- IEnumerable<string>
public string Title { get; set; }
Property Value
- string
Methods
public bool AddCss(string content)
Parameters
content string
Returns
- bool
public bool AddCssFile(string path)
Parameters
path string
Returns
- bool
public bool AddJavaScript(string content)
Parameters
content string
Returns
- bool
public static void Initialize(ApiSettings premailerApiSettings)
Parameters
premailerApiSettings ApiSettings
public static string MoveCssInline(string html)
Parameters
html string
Returns
- string
public string ToHtml(bool moveCssInline = false)
Parameters
moveCssInline bool
Returns
- string