System.Web.UI.Design.ColorBuilder Class

Provides an HTML color string builder at design time that allows a user to select a color.

See Also: ColorBuilder Members


public sealed class ColorBuilder


The ColorBuilder.BuildColor(System.ComponentModel.IComponent, System.Windows.Forms.Control, string) method starts a user interface for selecting a color value.

The System.Web.UI.Design.ColorBuilder class is not intended for use outside of the design time environment. System.Web.UI.Design.ColorBuilder requires the System.Web.UI.Design.IWebFormsBuilderUIService, which is typically available within a Web Forms project at design time. If you want to build HTML color strings, you may want to implement a method that converts the RGB values of a System.Drawing.Color object to an HTML-compatible RRGGBB format string. If you intend to use a control to select a color or configure a color, you can build a user interface for this, or you may want to use a System.Windows.Forms.PropertyGrid control which allows you to edit System.Drawing.Color properties with the default System.Drawing.Design.ColorEditor providing a color selection interface.


Namespace: System.Web.UI.Design
Assembly: System.Design (in System.Design.dll)
Assembly Versions: 1.0.5000.0,