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