Language

ColorBuilder.BuildColor(IComponent, Control, String) メソッド

定義

カラー エディターを起動して、HTML カラー プロパティ値を作成します。

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

パラメーター

component
IComponent

デザイン時サービスへのアクセスに使用するサイトを持つ IComponent 。

owner
Control

Controlピッカー ウィンドウの親として使用されます。

initialColor
String

有効な HTML カラー形式で、ピッカー ウィンドウに表示される初期色。

返品

HTML の色形式で文字列として表される色の値。ビルダー サービスを取得できなかった場合は null 。

例

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

注釈

返される文字列 ( null以外の場合) は、有効な HTML 色形式の色を示します。 有効な形式には、名前付きの色と RGB 形式 (#RRGGBB) の色コードが含まれます。

適用対象