I'm looking to add Additive Styles to a CssStyleCollect ion, however the
Add(HtmlTextWri teStyle, String) method seems to replace styles (see example
below).
void Style(CssStyleC ollection styles)
{
styles.Add(Html TextWriterStyle .FontStyle, "italic");
styles.Add(Html TextWriterStyle .FontStyle, "bold");
// now expecting Italic + Bold
// however styles.Value == "font-style:bold;"
}
How do I assign styles in an additive way?
Thanks
Joris
Add(HtmlTextWri teStyle, String) method seems to replace styles (see example
below).
void Style(CssStyleC ollection styles)
{
styles.Add(Html TextWriterStyle .FontStyle, "italic");
styles.Add(Html TextWriterStyle .FontStyle, "bold");
// now expecting Italic + Bold
// however styles.Value == "font-style:bold;"
}
How do I assign styles in an additive way?
Thanks
Joris
Comment