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

  1. //------------------------------------------------------------------------------
  2. // <copyright file="DocumentEventArgs.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 Microsoft.Win32;
  20.     using System;
  21.     using System.ComponentModel;
  22.     using System.Diagnostics;
  23.     using System.Security.Permissions;
  24.    
  25.     /// <devdoc>
  26.     /// <para>Provides data for the System.ComponentModel.Design.IDesignerEventService.DesignerEvent
  27.     /// event that is generated when a document is created or disposed.</para>
  28.     /// </devdoc>
  29.     [HostProtection(SharedState = true)]
  30.     [System.Security.Permissions.PermissionSetAttribute(System.Security.Permissions.SecurityAction.InheritanceDemand, Name = "FullTrust")]
  31.     [System.Security.Permissions.PermissionSetAttribute(System.Security.Permissions.SecurityAction.LinkDemand, Name = "FullTrust")]
  32.     public class DesignerEventArgs : EventArgs
  33.     {
  34.         private readonly IDesignerHost host;
  35.        
  36.         /// <devdoc>
  37.         /// <para>
  38.         /// Initializes a new instance of the System.ComponentModel.Design.DesignerEventArgs
  39.         /// class.
  40.         /// </para>
  41.         /// </devdoc>
  42.         public DesignerEventArgs(IDesignerHost host)
  43.         {
  44.             this.host = host;
  45.         }
  46.        
  47.         /// <devdoc>
  48.         /// <para>
  49.         /// Gets or
  50.         /// sets the host of the document.
  51.         /// </para>
  52.         /// </devdoc>
  53.         public IDesignerHost Designer {
  54.             get { return host; }
  55.         }
  56.     }
  57. }

Developer Fusion