System.ComponentModel.Design.IComponentChangeService

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

Syntax

[System.Runtime.InteropServices.ComVisible(true)]
public interface IComponentChangeService

Remarks

System.ComponentModel.Design.IComponentChangeService provides an interface that can be used to indicate the methods that handle the following events:

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.

Requirements

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