//------------------------------------------------------------------------------ // // Copyright (c) Microsoft Corporation. All rights reserved. // //------------------------------------------------------------------------------ /* */ namespace System.ComponentModel.Design { using System.Diagnostics; using System; using System.ComponentModel; /// /// Provides an interface to add and remove the event handlers for System.ComponentModel.Design.IComponentChangeService.ComponentAdded, System.ComponentModel.Design.IComponentChangeService.ComponentAdding, System.ComponentModel.Design.IComponentChangeService.ComponentChanged, System.ComponentModel.Design.IComponentChangeService.ComponentChanging, System.ComponentModel.Design.IComponentChangeService.ComponentRemoved, System.ComponentModel.Design.IComponentChangeService.ComponentRemoving, and System.ComponentModel.Design.IComponentChangeService.ComponentRename events. /// [System.Runtime.InteropServices.ComVisible(true)] public interface IComponentChangeService { /// /// Adds an event handler for the System.ComponentModel.Design.IComponentChangeService.ComponentAdded event. /// event ComponentEventHandler ComponentAdded; /// /// Adds an event handler for the System.ComponentModel.Design.IComponentChangeService.ComponentAdding event. /// event ComponentEventHandler ComponentAdding; /// /// Adds an event handler for the System.ComponentModel.Design.IComponentChangeService.ComponentChanged event. /// event ComponentChangedEventHandler ComponentChanged; /// /// Adds an event handler for the System.ComponentModel.Design.IComponentChangeService.ComponentChanging event. /// event ComponentChangingEventHandler ComponentChanging; /// /// Adds an event handler for the System.ComponentModel.Design.IComponentChangeService.OnComponentRemoved event. /// event ComponentEventHandler ComponentRemoved; /// /// Adds an event handler for the System.ComponentModel.Design.IComponentChangeService.OnComponentRemoving event. /// event ComponentEventHandler ComponentRemoving; /// /// Adds an event handler for the System.ComponentModel.Design.IComponentChangeService.OnComponentRename event. /// event ComponentRenameEventHandler ComponentRename; /// /// Announces to the component change service that a particular component has changed. /// void OnComponentChanged(object component, MemberDescriptor member, object oldValue, object newValue); /// /// Announces to the component change service that a particular component is changing. /// void OnComponentChanging(object component, MemberDescriptor member); } }