J
Joris van Lier
I'm looking to add Additive Styles to a CssStyleCollection, however the
Add(HtmlTextWriteStyle, String) method seems to replace styles (see example
below).
void Style(CssStyleCollection styles)
{
styles.Add(HtmlTextWriterStyle.FontStyle, "italic");
styles.Add(HtmlTextWriterStyle.FontStyle, "bold");
// now expecting Italic + Bold
// however styles.Value == "font-style:bold;"
}
How do I assign styles in an additive way?
Thanks
Joris
Add(HtmlTextWriteStyle, String) method seems to replace styles (see example
below).
void Style(CssStyleCollection styles)
{
styles.Add(HtmlTextWriterStyle.FontStyle, "italic");
styles.Add(HtmlTextWriterStyle.FontStyle, "bold");
// now expecting Italic + Bold
// however styles.Value == "font-style:bold;"
}
How do I assign styles in an additive way?
Thanks
Joris