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

  1. //------------------------------------------------------------------------------
  2. // <copyright file="ITypeDescriptorFilterService.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.Runtime.InteropServices;
  20.     using System.Diagnostics;
  21.     using System;
  22.     using System.Collections;
  23.     using System.ComponentModel;
  24.    
  25.     /// <devdoc>
  26.     /// <para>
  27.     /// Modifies the set of type descriptors that a component
  28.     /// provides.
  29.     /// </para>
  30.     /// </devdoc>
  31.     public interface ITypeDescriptorFilterService
  32.     {
  33.        
  34.         /// <devdoc>
  35.         /// <para>
  36.         /// Provides a way to filter the attributes from a component that are displayed to the user.
  37.         /// </para>
  38.         /// </devdoc>
  39.         bool FilterAttributes(IComponent component, IDictionary attributes);
  40.        
  41.         /// <devdoc>
  42.         /// <para>
  43.         /// Provides a way to filter the events from a component that are displayed to the user.
  44.         /// </para>
  45.         /// </devdoc>
  46.         bool FilterEvents(IComponent component, IDictionary events);
  47.        
  48.         /// <devdoc>
  49.         /// <para>
  50.         /// Provides a way to filter the properties from a component that are displayed to the user.
  51.         /// </para>
  52.         /// </devdoc>
  53.         bool FilterProperties(IComponent component, IDictionary properties);
  54.     }
  55. }

Developer Fusion