ColorBuilder.BuildColor Method

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

Namespace: System.Web.UI.Design
Assembly: System.Design (in system.design.dll)

public:
static String^ BuildColor (
	IComponent^ component, 
	Control^ owner, 
	String^ initialColor
)
public static String BuildColor (
	IComponent component, 
	Control owner, 
	String initialColor
)
public static function BuildColor (
	component : IComponent, 
	owner : Control, 
	initialColor : String
) : String
Not applicable.

Parameters

component

The IComponent whose site is to be used to access design-time services.

owner

The Control used to parent the picker window.

initialColor

The initial color to be shown in the picker window, in a valid HTML color format.

Return Value

The color value, represented as a string in an HTML color format, or a null reference (Nothing in Visual Basic) if the builder service could not be retrieved.

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

Windows 98, Windows Server 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1, 1.0

Community Additions

ADD
Show: