34 references to ToHtml
System.Web (19)
UI\WebControls\Calendar.cs (3)
947sb.Append(foreColor.IsEmpty ? defaultButtonColorText : ColorTranslator.ToHtml(foreColor)); 1254defaultButtonColorText = ColorTranslator.ToHtml(defaultForeColor); 1327writer.Write(foreColor.IsEmpty ? defaultButtonColorText : ColorTranslator.ToHtml(foreColor));
UI\WebControls\HyperLinkStyle.cs (1)
87attributes.Add(HtmlTextWriterStyle.Color, ColorTranslator.ToHtml(c));
UI\WebControls\MenuItemStyle.cs (2)
171attributes.Add(HtmlTextWriterStyle.BackgroundColor, ColorTranslator.ToHtml(c)); 179attributes.Add(HtmlTextWriterStyle.BorderColor, ColorTranslator.ToHtml(c));
UI\WebControls\PopOutPanel.cs (1)
156writer.AddStyleAttribute(HtmlTextWriterStyle.BackgroundColor, ColorTranslator.ToHtml(BackColor));
UI\WebControls\Style.cs (3)
532attributes.Add(HtmlTextWriterStyle.Color, ColorTranslator.ToHtml(c)); 540attributes.Add(HtmlTextWriterStyle.BackgroundColor, ColorTranslator.ToHtml(c)); 548attributes.Add(HtmlTextWriterStyle.BorderColor, ColorTranslator.ToHtml(c));
UI\WebControls\SubMenuStyle.cs (2)
127attributes.Add(HtmlTextWriterStyle.BackgroundColor, ColorTranslator.ToHtml(c)); 135attributes.Add(HtmlTextWriterStyle.BorderColor, ColorTranslator.ToHtml(c));
UI\WebControls\Table.cs (1)
235writer.AddAttribute(HtmlTextWriterAttribute.Bordercolor, ColorTranslator.ToHtml(borderColor));
UI\WebControls\TreeNodeStyle.cs (2)
225attributes.Add(HtmlTextWriterStyle.BackgroundColor, ColorTranslator.ToHtml(c)); 233attributes.Add(HtmlTextWriterStyle.BorderColor, ColorTranslator.ToHtml(c));
UI\WebParts\WebPartManager.cs (1)
3871dragHighlightColor = ColorTranslator.ToHtml(zone.DragHighlightColor);
UI\WebParts\WebPartMenu.cs (1)
62labelHoverColor = ColorTranslator.ToHtml(foreColor);
UI\WebParts\WebPartMenuStyle.cs (1)
74string colorValue = ColorTranslator.ToHtml(shadowColor);
UI\WebParts\WebPartZoneBase.cs (1)
1326string color = ColorTranslator.ToHtml(DragHighlightColor);
System.Web.Mobile (15)
UI\MobileControls\Adapters\HtmlFormAdapter.cs (1)
89bodyAttributes.Add("bgcolor", ColorTranslator.ToHtml(backColor));
UI\MobileControls\Adapters\HtmlMobileTextWriter.cs (1)
1318ColorTranslator.ToHtml(newStyle.FontColor));
UI\MobileControls\Adapters\HtmlObjectListAdapter.cs (1)
526writer.Write((foreColor != Color.Empty) ? ColorTranslator.ToHtml(foreColor) : "#000000");
UI\MobileControls\Adapters\XhtmlAdapters\XhtmlStyleClass.cs (2)
122classBuilder.Append ("background-color: " + ColorTranslator.ToHtml (styleColor).ToLower(CultureInfo.InvariantCulture) + ";\r\n"); 132classBuilder.Append ("color: " + ColorTranslator.ToHtml (styleColor).ToLower(CultureInfo.InvariantCulture) + ";\r\n");
UI\MobileControls\Design\Adapters\DesignerAdapterUtil.cs (1)
245behavior.SetStyleAttribute("borderColor", true, ColorTranslator.ToHtml(c), true);
UI\MobileControls\Design\Adapters\DesignerTextWriter.cs (4)
88Write(";background-color:" + ColorTranslator.ToHtml(backColor)); 153Write(ColorTranslator.ToHtml(foreColor)); 160Write(ColorTranslator.ToHtml(backColor)); 163Write(ColorTranslator.ToHtml(backColor));
UI\MobileControls\Design\MobileContainerDesigner.cs (3)
171SetBehaviorStyle("backgroundColor", ColorTranslator.ToHtml(backColor)); 176SetBehaviorStyle("color", ColorTranslator.ToHtml(foreColor)); 618SetBehaviorStyle("borderColor", ColorTranslator.ToHtml(SystemColors.ControlDark));
UI\MobileControls\Design\StylesEditorDialog.cs (2)
576tw.AddStyleAttribute("color", ColorTranslator.ToHtml(c)); 583tw.AddStyleAttribute("background-color", ColorTranslator.ToHtml(c));