Provides an interface to add and remove the event handlers for events that add, change, remove or rename components, and provides methods to raise a IComponentChangeService.ComponentChanged or IComponentChangeService.ComponentChanging event.
See Also: IComponentChangeService Members
System.ComponentModel.Design.IComponentChangeService provides an interface that can be used to indicate the methods that handle the following events:
IComponentChangeService.ComponentAdded, raised when a component is added.
IComponentChangeService.ComponentAdding, raised when a component is about to be added.
IComponentChangeService.ComponentChanged, raised when a component is changed.
IComponentChangeService.ComponentChanging, raised when a component is about to be changed.
IComponentChangeService.ComponentRemoved, raised when a component is removed.
IComponentChangeService.ComponentRemoving, raised when a component is about to be removed.
IComponentChangeService.ComponentRename, raised when a component is renamed.
Typically, the design environment raises these component add, change, remove, or rename events. Designers should call the methods of this interface when using System.ComponentModel.Design.DesignerTransaction objects to provide undo and redo functionality for design-time actions that affect components. More information is available in the documentation for System.ComponentModel.Design.DesignerTransaction. Generally, only the root designer handles these change notifications.
This service also provides methods that raise a component changed event or component changing event. A System.ComponentModel.PropertyDescriptor or a component can indicate that a component has changed or is changing with the IComponentChangeService.OnComponentChanged(object, System.ComponentModel.MemberDescriptor, object, object) and IComponentChangeService.OnComponentChanging(object, System.ComponentModel.MemberDescriptor) methods, respectively.