Sprache

ColorBuilder.BuildColor(IComponent, Control, String) Methode

Definition

Startet einen Farb-Editor, um einen HTML-Farbeigenschaftswert zu erstellen.

public:
 static System::String ^ BuildColor(System::ComponentModel::IComponent ^ component, System::Windows::Forms::Control ^ owner, System::String ^ initialColor);
public static string BuildColor(System.ComponentModel.IComponent component, System.Windows.Forms.Control owner, string initialColor);
static member BuildColor : System.ComponentModel.IComponent * System.Windows.Forms.Control * string -> string
Public Shared Function BuildColor (component As IComponent, owner As Control, initialColor As String) As String

Parameter

component
IComponent

Die IComponent Website, deren Website für den Zugriff auf Entwurfszeitdienste verwendet werden soll.

owner
Control

Das Control zum übergeordneten Element des Auswahlfensters verwendete Element.

initialColor
String

Die ursprüngliche Farbe, die im Auswahlfenster angezeigt werden soll, in einem gültigen HTML-Farbformat.

Gibt zurück

Der Farbwert, dargestellt als Zeichenfolge in einem HTML-Farbformat oder null wenn der Generatordienst nicht abgerufen werden konnte.

Beispiele

// 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" );
// Create a parent control.
System.Windows.Forms.Control c = new System.Windows.Forms.Control();            
c.CreateControl();            

// Launch the Color Builder using the specified control 
// parent and an initial HTML format ("RRGGBB") color string.
System.Web.UI.Design.ColorBuilder.BuildColor(this.Component, c, "405599");
' Create a parent control.
Dim c As New System.Windows.Forms.Control()
c.CreateControl()

' Launch the Color Builder using the specified control 
' parent and an initial HTML format ("RRGGBB") color string.
System.Web.UI.Design.ColorBuilder.BuildColor(Me.Component, c, "405599")

Hinweise

Die zurückgegebene Zeichenfolge, sofern nicht null, gibt eine Farbe in einem gültigen HTML-Farbformat an. Gültige Formate umfassen benannte Farben und Farbcodes im RGB-Format (#RRGGBB).

Gilt für: