The CSSHelper type exposes the following members.
Back to Top
Back to Top
Back to Top
Methods
Name | Description | |
---|---|---|
EnsureClass |
Ensures the given class in the CSS class
| |
GetCssClassAttribute |
Returns class attribute or empty string if no class is defined.
| |
GetCSSFileLink(String) |
Returns the HTML link element that links to external stylesheet.
| |
GetCSSFileLink(String, String) |
Returns the HTML link element that links to external stylesheet.
| |
GetCSSUrl |
Returns path to the stylesheet handler
| |
GetMaxHeightExpression |
Gets the CSS expression to limit the max Height of the element.
| |
GetMaxWidthExpression |
Gets the CSS expression to limit the max width of the element.
| |
GetMaxWidthHeightExpression |
Gets the CSS expression to limit the max width of the element.
| |
GetPhysicalCSSUrl(String) |
Gets the URL used to retrieve external physical stylesheet.
| |
GetPhysicalCSSUrl(String, String) |
Gets the URL for the Theme CSS file. Based in ~/App_Themes/[Theme] or ~/App_Themes/Default.
| |
GetStyle |
Encloses a style declaration block in an HTML style element.
| |
GetStylesheetUrl |
Returns virtual path to the stylesheet file.
| |
GetThemeCSSUrl(String, String) |
Gets the URL for the Theme CSS file. Based in ~/App_Themes/[Theme] or ~/App_Themes/Default.
| |
GetThemeCSSUrl(String, String, Boolean) |
Gets the URL for the Theme CSS file. Based in ~/App_Themes/[Theme] or ~/App_Themes/Default.
| |
IsCSSLinkRegistered |
Gets if the CSS link is already registered.
| |
JoinClasses |
Joins the given list of CSS classes. Omits empty and null strings.
| |
RegisterBootstrap |
Registers the bootstrap CSS.
| |
RegisterCSSBlock |
Adds a style block containing specified CSS rules to the page's header. If registering the same block multiple times then a given block is registered only once.
| |
RegisterCSSLink(Page, String) |
Adds a link to the external CSS stylesheet to the page header. Supports asynchronous requests.
| |
RegisterCSSLink(Page, String, String) |
Adds a link to the custom theme CSS stylesheet to the page header. Supports asynchronous requests.
| |
RegisterDesignMode |
Registers the design mode CSS.
| |
RegisterWidgetsMode |
Registers the widgets mode CSS.
| |
RegisterWireframesMode |
Registers the wireframe mode CSS.
| |
SetCSSLinkRegistered |
Sets the CSS link as already registered.
| |
TrimCharset |
Trims the charset from the CSS style
|
Fields
Name | Description | |
---|---|---|
DIVS |
CSS class marker to enable conversion of TABLE to DIV
| |
NO_DIVS |
CSS class marker to disable conversion of TABLE to DIV
|
Properties
Name | Description | |
---|---|---|
MinifyCurrentRequest |
If true, the current request links are minified.
| |
ResolveMacrosInCSS |
If true, the macros are resolved within the CSS stylesheets
| |
StylesheetMinificationEnabled |
Gets if stylesheet minification is enabled.
| |
UseComponentNames |
If true, the stylesheet link uses names, otherwise it uses IDs
|
See Also