This documentation is archived and is not being maintained.
ColorBuilder::BuildColor Method
Visual Studio 2008
Starts a color editor to build an HTML color property value.
Assembly: System.Design (in System.Design.dll)
public: static String^ BuildColor( IComponent^ component, Control^ owner, String^ initialColor )
Parameters
- component
- Type: System.ComponentModel::IComponent
The IComponent whose site is to be used to access design-time services.
- owner
- Type: System.Windows.Forms::Control
The Control used to parent the picker window.
- initialColor
- Type: System::String
The initial color to be shown in the picker window, in a valid HTML color format.
Return Value
Type: System::StringThe color value, represented as a string in an HTML color format, or nullptr if the builder service could not be retrieved.
// Create a parent control. System::Windows::Forms::Control^ c = gcnew System::Windows::Forms::Control; c->CreateControl(); // Launch the Color Builder using the specified control // parent and an initial HTML format (S"RRGGBB") color String*. System::Web::UI::Design::ColorBuilder::BuildColor( this->Component, c, "405599" );
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: