다음을 통해 공유


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) 명명 된 색 및 색 코드를 포함 합니다.

적용 대상