/// <summary> /// Renders the item's contents /// </summary> /// <param name="inlineWriter">The HtmlTextWriter object that receives the content.</param> protected override void DownLevelContent(HtmlTextWriter inlineWriter) { HtmlTextWriter writer = (HtmlTextWriter)inlineWriter.InnerWriter; ResolveSelectedIndex(); Toolbar parent = ParentToolbar; if (Enabled && AutoPostBack && (parent != null) && (parent.Page != null)) { writer.AddAttribute(HtmlTextWriterAttribute.Onchange, parent.Page.GetPostBackEventReference(_List)); } if (Font.Names.Length == 0) { string font = CurrentStyle["font"]; string fontFamily = CurrentStyle["font-family"]; string fontSize = CurrentStyle["font-size"]; string fontWeight = CurrentStyle["font-weight"]; string fontStyle = CurrentStyle["font-style"]; if (font != null) { _List.Style["font"] = font; } if (fontFamily != null) { _List.Style["font-family"] = fontFamily; } if (fontSize != null) { _List.Style["font-size"] = fontSize; } if (fontWeight != null) { _List.Style["font-weight"] = fontWeight; } if (fontStyle != null) { _List.Style["font-style"] = fontStyle; } } _List.RenderControl(writer); }