示例#1
0
        /// Tell the given component's designer to filter properties.
        public bool FilterProperties(System.ComponentModel.IComponent component, System.Collections.IDictionary properties)
        {
            IDesignerFilter filter = GetDesignerFilter(component);

            if (filter != null)
            {
                filter.PreFilterProperties(properties);
                filter.PostFilterProperties(properties);
                PropertyDescriptor pd = properties["Name"] as PropertyDescriptor;
                if (pd != null)
                {
                    properties["Name"] = new SYNamePropertyDescriptor(pd);
                }
                return(true);
            }
            return(false);
        }
		/// Tell the given component's designer to filter properties.
		public bool FilterProperties(System.ComponentModel.IComponent component, System.Collections.IDictionary properties)
		{
			IDesignerFilter filter = GetDesignerFilter(component);
			if (filter != null)
			{
				filter.PreFilterProperties(properties);
				filter.PostFilterProperties(properties);
                PropertyDescriptor pd = properties["Name"] as PropertyDescriptor;
                if (pd != null)
                {
                    properties["Name"] = new SYNamePropertyDescriptor(pd);
                }
                return true;
			}
			return false;
		}