<?xml version="1.0" encoding="utf-8"?>
<Type Name="ColorBuilder" FullName="System.Web.UI.Design.ColorBuilder">
  <TypeSignature Language="C#" Value="public sealed class ColorBuilder" />
  <AssemblyInfo>
    <AssemblyName>System.Design</AssemblyName>
    <AssemblyVersion>1.0.5000.0</AssemblyVersion>
    <AssemblyVersion>2.0.0.0</AssemblyVersion>
  </AssemblyInfo>
  <Base>
    <BaseTypeName>System.Object</BaseTypeName>
  </Base>
  <Interfaces />
  <Docs>
    <remarks>
      <attribution license="cc4" from="Microsoft" modified="false" />
      <para>The <see cref="M:System.Web.UI.Design.ColorBuilder.BuildColor(System.ComponentModel.IComponent,System.Windows.Forms.Control,System.String)" /> method starts a user interface for selecting a color value.</para>
      <para>The <see cref="T:System.Web.UI.Design.ColorBuilder" /> class is not intended for use outside of the design time environment. <see cref="T:System.Web.UI.Design.ColorBuilder" /> requires the <see cref="T:System.Web.UI.Design.IWebFormsBuilderUIService" />, which is typically available within a Web Forms project at design time. If you want to build HTML color strings, you may want to implement a method that converts the RGB values of a <see cref="T:System.Drawing.Color" /> object to an HTML-compatible RRGGBB format string. If you intend to use a control to select a color or configure a color, you can build a user interface for this, or you may want to use a <see cref="T:System.Windows.Forms.PropertyGrid" /> control which allows you to edit <see cref="T:System.Drawing.Color" /> properties with the default <see cref="T:System.Drawing.Design.ColorEditor" /> providing a color selection interface.</para>
    </remarks>
    <summary>
      <attribution license="cc4" from="Microsoft" modified="false" />
      <para>Provides an HTML color string builder at design time that allows a user to select a color.</para>
    </summary>
  </Docs>
  <Members>
    <Member MemberName="BuildColor">
      <MemberSignature Language="C#" Value="public static string BuildColor (System.ComponentModel.IComponent component, System.Windows.Forms.Control owner, string initialColor);" />
      <MemberType>Method</MemberType>
      <ReturnValue>
        <ReturnType>System.String</ReturnType>
      </ReturnValue>
      <Parameters>
        <Parameter Name="component" Type="System.ComponentModel.IComponent" />
        <Parameter Name="owner" Type="System.Windows.Forms.Control" />
        <Parameter Name="initialColor" Type="System.String" />
      </Parameters>
      <Docs>
        <remarks>
          <attribution license="cc4" from="Microsoft" modified="false" />
          <para>The returned string, if other than null, indicates a color in a valid HTML color format. Valid formats include named colors and color codes in RGB format (#RRGGBB).</para>
        </remarks>
        <summary>
          <attribution license="cc4" from="Microsoft" modified="false" />
          <para>Starts a color editor to build an HTML color property value.</para>
        </summary>
        <returns>
          <attribution license="cc4" from="Microsoft" modified="false" />
          <para>The color value, represented as a string in an HTML color format, or null if the builder service could not be retrieved.</para>
        </returns>
        <param name="component">
          <attribution license="cc4" from="Microsoft" modified="false" />The <see cref="T:System.ComponentModel.IComponent" /> whose site is to be used to access design-time services. </param>
        <param name="owner">
          <attribution license="cc4" from="Microsoft" modified="false" />The <see cref="T:System.Web.UI.Control" /> used to parent the picker window. </param>
        <param name="initialColor">
          <attribution license="cc4" from="Microsoft" modified="false" />The initial color to be shown in the picker window, in a valid HTML color format. </param>
      </Docs>
      <AssemblyInfo>
        <AssemblyVersion>1.0.5000.0</AssemblyVersion>
        <AssemblyVersion>2.0.0.0</AssemblyVersion>
      </AssemblyInfo>
    </Member>
  </Members>
</Type>