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

  1. //------------------------------------------------------------------------------
  2. // <copyright file="IDesignerEventService.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. namespace System.ComponentModel.Design
  16. {
  17.     using System.Diagnostics;
  18.     using System;
  19.     using System.ComponentModel;
  20.     using Microsoft.Win32;
  21.    
  22.     /// <devdoc>
  23.     /// <para>Provides global
  24.     /// event notifications and the ability to create designers.</para>
  25.     /// </devdoc>
  26.     public interface IDesignerEventService
  27.     {
  28.        
  29.         /// <devdoc>
  30.         /// <para>
  31.         /// Gets the currently active designer.
  32.         /// </para>
  33.         /// </devdoc>
  34.         IDesignerHost ActiveDesigner {
  35.             get;
  36.         }
  37.        
  38.         /// <devdoc>
  39.         /// <para>
  40.         /// Gets or
  41.         /// sets a collection of running design documents in the development environment.
  42.         /// </para>
  43.         /// </devdoc>
  44.         DesignerCollection Designers {
  45.             get;
  46.         }
  47.        
  48.         /// <devdoc>
  49.         /// <para>
  50.         /// Adds an event that will be raised when the currently active designer
  51.         /// changes.
  52.         /// </para>
  53.         /// </devdoc>
  54.         event ActiveDesignerEventHandler ActiveDesignerChanged;
  55.        
  56.         /// <devdoc>
  57.         /// <para>
  58.         /// Adds an event that will be raised when a designer is created.
  59.         /// </para>
  60.         /// </devdoc>
  61.         event DesignerEventHandler DesignerCreated;
  62.        
  63.         /// <devdoc>
  64.         /// <para>
  65.         /// Adds an event that will be raised when a designer is disposed.
  66.         /// </para>
  67.         /// </devdoc>
  68.         event DesignerEventHandler DesignerDisposed;
  69.        
  70.         /// <devdoc>
  71.         /// <para>
  72.         /// Adds an event that will be raised when the global selection changes.
  73.         /// </para>
  74.         /// </devdoc>
  75.         event EventHandler SelectionChanged;
  76.     }
  77. }

Developer Fusion