ComponentFactory.Krypton.Ribbon.KryptonRibbonGroupNumericUpDownDesigner.PreFilterProperties C# (CSharp) Method

PreFilterProperties() protected method

Adjusts the set of properties the component exposes through a TypeDescriptor.
protected PreFilterProperties ( IDictionary properties ) : void
properties IDictionary An IDictionary containing the properties for the class of the component.
return void
        protected override void PreFilterProperties(IDictionary properties)
        {
            base.PreFilterProperties(properties);

            // Setup the array of properties we override
            Attribute[] attributes = new Attribute[0];
            string[] strArray = new string[] { "Visible", "Enabled" };

            // Adjust our list of properties
            for (int i = 0; i < strArray.Length; i++)
            {
                PropertyDescriptor descrip = (PropertyDescriptor)properties[strArray[i]];
                if (descrip != null)
                    properties[strArray[i]] = TypeDescriptor.CreateProperty(typeof(KryptonRibbonGroupNumericUpDownDesigner), descrip, attributes);
            }
        }