Table of Contents

Class HtmlBuilder

Namespace
Shift.Toolbox
Assembly
Shift.Toolbox.dll
public class HtmlBuilder
Inheritance
HtmlBuilder
Inherited Members
Extension Methods

Constructors

HtmlBuilder(string, string)

public HtmlBuilder(string title, string body)

Parameters

title string
body string

Properties

Body

public StringBuilder Body { get; set; }

Property Value

StringBuilder

Scripts

public IEnumerable<string> Scripts { get; }

Property Value

IEnumerable<string>

Styles

public IEnumerable<string> Styles { get; }

Property Value

IEnumerable<string>

Title

public string Title { get; set; }

Property Value

string

Methods

AddCss(string)

public bool AddCss(string content)

Parameters

content string

Returns

bool

AddCssFile(string)

public bool AddCssFile(string path)

Parameters

path string

Returns

bool

AddJavaScript(string)

public bool AddJavaScript(string content)

Parameters

content string

Returns

bool

Initialize(ApiSettings)

public static void Initialize(ApiSettings premailerApiSettings)

Parameters

premailerApiSettings ApiSettings

MoveCssInline(string)

public static string MoveCssInline(string html)

Parameters

html string

Returns

string

ToHtml(bool)

public string ToHtml(bool moveCssInline = false)

Parameters

moveCssInline bool

Returns

string