protected override string WriteSelfStartTag(System.IO.TextWriter writer, IBootstrapContext context) { var tb = context.CreateTagBuilder("th"); if (ColorValue != TableRowCellColor.DefaultNone) { tb.AddCssClass(ColorValue.ToCssClass()); } ApplyCss(tb); ApplyAttributes(tb); tb.WriteStartTag(writer); return(tb.GetEndTag()); }