The Labs \ Source Viewer \ SSCLI \ System.ComponentModel \ ITypeDescriptorContext

  1. //------------------------------------------------------------------------------
  2. // <copyright file="ITypeDescriptorContext.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
  18. {
  19.     using System.Runtime.Remoting;
  20.     using System.Runtime.InteropServices;
  21.    
  22.    
  23.     using System.Diagnostics;
  24.    
  25.     /// <devdoc>
  26.     /// <para>
  27.     /// Provides information about a context to a type converter or a value editor,
  28.     /// so that the type converter or editor can perform a conversion.</para>
  29.     /// </devdoc>
  30.     [System.Runtime.InteropServices.ComVisible(true)]
  31.     public interface ITypeDescriptorContext : IServiceProvider
  32.     {
  33.        
  34.         /// <devdoc>
  35.         /// <para>Gets the container with the set of objects for this formatter.</para>
  36.         /// </devdoc>
  37.         IContainer Container {
  38.             get;
  39.         }
  40.        
  41.         /// <devdoc>
  42.         /// <para>Gets the instance that is invoking the method on the formatter object.</para>
  43.         /// </devdoc>
  44.         object Instance {
  45.             get;
  46.         }
  47.        
  48.         /// <devdoc>
  49.         /// Retrieves the PropertyDescriptor that is surfacing the given context item.
  50.         /// </devdoc>
  51.         PropertyDescriptor PropertyDescriptor {
  52.             get;
  53.         }
  54.        
  55.         /// <devdoc>
  56.         /// <para>Gets a value indicating whether this object can be changed.</para>
  57.         /// </devdoc>
  58.         bool OnComponentChanging();
  59.        
  60.         /// <devdoc>
  61.         /// <para>Raises the <see cref='System.ComponentModel.Design.IComponentChangeService.ComponentChanged'/>
  62.         /// event.</para>
  63.         /// </devdoc>
  64.         void OnComponentChanged();
  65.     }
  66. }

Developer Fusion