The Labs \ Source Viewer \ SSCLI \ System.ComponentModel.Design \ IComponentChangeService

  1. //------------------------------------------------------------------------------
  2. // <copyright file="IComponentChangeService.cs" company="Microsoft">
  3. //
  4. // Copyright (c) 2006 Microsoft Corporation. All rights reserved.
  5. //
  6. // The use and distribution terms for this software are contained in the file
  7. // named license.txt, which can be found in the root of this distribution.
  8. // By using this software in any fashion, you are agreeing to be bound by the
  9. // terms of this license.
  10. //
  11. // You must not remove this notice, or any other, from this software.
  12. //
  13. // </copyright>
  14. //------------------------------------------------------------------------------
  15. /*
  16. */
  17. namespace System.ComponentModel.Design
  18. {
  19.     using System.Diagnostics;
  20.     using System;
  21.     using System.ComponentModel;
  22.    
  23.     /// <devdoc>
  24.     /// <para>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.</para>
  25.     /// </devdoc>
  26.     [System.Runtime.InteropServices.ComVisible(true)]
  27.     public interface IComponentChangeService
  28.     {
  29.        
  30.         /// <devdoc>
  31.         /// <para>Adds an event handler for the System.ComponentModel.Design.IComponentChangeService.ComponentAdded event.</para>
  32.         /// </devdoc>
  33.         event ComponentEventHandler ComponentAdded;
  34.        
  35.         /// <devdoc>
  36.         /// <para>Adds an event handler for the System.ComponentModel.Design.IComponentChangeService.ComponentAdding event.</para>
  37.         /// </devdoc>
  38.         event ComponentEventHandler ComponentAdding;
  39.        
  40.         /// <devdoc>
  41.         /// <para>Adds an event handler for the System.ComponentModel.Design.IComponentChangeService.ComponentChanged event.</para>
  42.         /// </devdoc>
  43.         event ComponentChangedEventHandler ComponentChanged;
  44.        
  45.         /// <devdoc>
  46.         /// <para>Adds an event handler for the System.ComponentModel.Design.IComponentChangeService.ComponentChanging event.</para>
  47.         /// </devdoc>
  48.         event ComponentChangingEventHandler ComponentChanging;
  49.        
  50.         /// <devdoc>
  51.         /// <para>Adds an event handler for the System.ComponentModel.Design.IComponentChangeService.OnComponentRemoved event.</para>
  52.         /// </devdoc>
  53.         event ComponentEventHandler ComponentRemoved;
  54.        
  55.         /// <devdoc>
  56.         /// <para>Adds an event handler for the System.ComponentModel.Design.IComponentChangeService.OnComponentRemoving event.</para>
  57.         /// </devdoc>
  58.         event ComponentEventHandler ComponentRemoving;
  59.        
  60.         /// <devdoc>
  61.         /// <para>Adds an event handler for the System.ComponentModel.Design.IComponentChangeService.OnComponentRename event.</para>
  62.         /// </devdoc>
  63.         event ComponentRenameEventHandler ComponentRename;
  64.        
  65.         /// <devdoc>
  66.         /// <para>Announces to the component change service that a particular component has changed.</para>
  67.         /// </devdoc>
  68.         void OnComponentChanged(object component, MemberDescriptor member, object oldValue, object newValue);
  69.        
  70.         /// <devdoc>
  71.         /// <para>Announces to the component change service that a particular component is changing.</para>
  72.         /// </devdoc>
  73.         void OnComponentChanging(object component, MemberDescriptor member);
  74.     }
  75. }

Developer Fusion