AjaxControlToolkit.HtmlEditor.ToolbarButtons.ColorSelector.DescribeComponent C# (CSharp) Method

DescribeComponent() protected method

protected DescribeComponent ( System.Web.UI.ScriptComponentDescriptor descriptor ) : void
descriptor System.Web.UI.ScriptComponentDescriptor
return void
        protected override void DescribeComponent(ScriptComponentDescriptor descriptor)
        {
            base.DescribeComponent(descriptor);
            if(FixedColorButtonId.Length > 0 && !IsDesign) {
                var but = Parent.FindControl(FixedColorButtonId) as FixedColorButton;
                if(but != null)
                    descriptor.AddComponentProperty("fixedColorButton", but.ClientID);
                else
                    throw new ArgumentException("FixedColorButton control's ID expected");
            }
        }