System.Web.UI.Design.ColorBuilder.BuildColor Method

Starts a color editor to build an HTML color property value.

Syntax

public static string BuildColor (System.ComponentModel.IComponent component, System.Windows.Forms.Control owner, string initialColor)

Parameters

component
The System.ComponentModel.IComponent whose site is to be used to access design-time services.
owner
The System.Web.UI.Control used to parent the picker window.
initialColor
The initial color to be shown in the picker window, in a valid HTML color format.

Returns

The color value, represented as a string in an HTML color format, or null if the builder service could not be retrieved.

Remarks

The returned string, if other than null, indicates a color in a valid HTML color format. Valid formats include named colors and color codes in RGB format (#RRGGBB).

Requirements

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