Aracılığıyla paylaş


ColorBuilder.BuildColor(IComponent, Control, String) Yöntem

Tanım

HTML renk özelliği değeri oluşturmak için bir renk düzenleyicisi başlatır.

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

Parametreler

component
IComponent

Tasarım IComponent zamanı hizmetlerine erişmek için kullanılacak olan site.

owner
Control

Control Seçici penceresinin üst öğesi için kullanılır.

initialColor
String

Seçici penceresinde geçerli bir HTML renk biçiminde gösterilecek ilk renk.

Döndürülenler

String

HTML renk biçiminde bir dize olarak gösterilen veya null oluşturucu hizmeti alınamadıysa renk değeri.

Örnekler

// 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")

Açıklamalar

dışında döndürülen dize, nullgeçerli bir HTML renk biçimindeki bir rengi gösterir. Geçerli biçimler RGB biçiminde (#RRGGBB) adlandırılmış renkleri ve renk kodlarını içerir.

Şunlara uygulanır