System.ComponentModel.Design.ComponentDesigner Class

Extends the design mode behavior of a component.

See Also: ComponentDesigner Members

Syntax

public class ComponentDesigner : IComponentInitializer, IDesignerFilter, ITreeDesigner

Remarks

The System.ComponentModel.Design.ComponentDesigner base designer class provides a simple designer that can extend the behavior of an associated component in design mode.

System.ComponentModel.Design.ComponentDesigner provides an empty System.ComponentModel.Design.IDesignerFilter interface implementation, whose methods can be overridden to adjust the attributes, properties and events of the associated component at design time.

You can associate a designer with a type using a System.ComponentModel.DesignerAttribute. For an overview of customizing design-time behavior, see Extending Design-Time Support.

The System.ComponentModel.Design.ComponentDesigner class implements a special behavior for the property descriptors of inherited components. An internal type named InheritedPropertyDescriptor is used by the default System.ComponentModel.Design.ComponentDesigner implementation to stand in for properties that are inherited from a base class. There are two cases in which these property descriptors are added.

[The 'ordered' type of list has not been implemented in the ECMA stylesheet.]

The InheritedPropertyDescriptor class modifies the default value of a property, so that the default value is the current value at object instantiation. This is because the property is inherited from another instance. The designer defines resetting the property value as setting it to the value that was set by the inherited class. This value may differ from the default value stored in metadata.

Requirements

Namespace: System.ComponentModel.Design
Assembly: System.Design (in System.Design.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0