Fundamentals
Components
Code Utilities
Demo
BcLocalizer
Description
Used for managing styles in components. There is a implicit operator that converts the cssStyleBuilder to a string.
cssStyleBuilder Properties & Methods
AddStyle ( string cssProperty, string cssValue, bool important = false )
Adds a style to the Style list. If the property already exists, it will be replaced by the new one.
void
AddstylesByString ( string? stylesString, bool append = false )
Adds multiple styles to the style list by a css style string.
void
RemoveStyle ( string cssProperty )
Removes a style from the Style list.
void
Clear ( )
Removes all styles from the Style list.
void
Getstyles ( )
Concats all styles from the style list and returns them as string
void