Class
HtmlStrictStyleFragment
ChartForgeX.Html
ChartForgeX markup without inline styles, and the stylesheet that replaces them.
Inheritance
- object
- HtmlStrictStyleFragment
Usage
Explore 1 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by 1
- Method HtmlStrictStyles.Extract
Methods
public string ToHtml(string? nonce) #Returns the markup preceded by one style element carrying the nonce. In a complete document the element goes at the end of head.
Parameters
- nonce string?
- The page's style nonce, or null for a host that adds its own nonce'd element.
Returns
stringInherited Methods
Properties
public string Markup { get; } #The markup, with generated classes in place of style attributes and no style elements.
public string StyleSheet { get; } #The rules that replace the inline styles and style elements. Hosts that register the stylesheet themselves add it once per page in a nonce'd style element, or serve it as a file.