Property filtering allows a designer to replace properties, add new properties, or modify the set of attributes or events that a component provides. For example, System.WinForms.Control has a Visible property that determines if the control is visible. At design time, however, the control should always remain visible, irrespective of the value of this property, so that the developer can position it on the design surface. The designer for Control replaces the Visible property with its own version, and stores the runtime value of the property.
To provide property filtering, a designer must implement the System.ComponentModel.Design.IDesignerFilter interface. The IDesignerFilter interface provides a way for a designer to fine-tune the filtering of the properties, events and attributes that its component reports.
[C#] public interface IDesignerFilter { void PostFilterAttributes(List attributes); void PostFilterEvents(List events); void PostFilterProperties(List properties); void PreFilterAttributes(List attributes); void PreFilterEvents(List events); void PreFilterProperties(List properties); }
Base Designer Classes | Creating Designer Verbs | Win Forms Designer Sample