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

  1. //------------------------------------------------------------------------------
  2. // <copyright file="ToolboxItemFilterType.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.    
  20.     using System;
  21.    
  22.     /// <devdoc>
  23.     /// Specifies the type of filter in a ToolboxItemFilterAttribute.
  24.     /// </devdoc>
  25.     public enum ToolboxItemFilterType
  26.     {
  27.        
  28.         /// <devdoc>
  29.         /// Specifies that a toolbox item filter string may be allowed. Allowed is typically used to
  30.         /// specify that you support the filter string, but don't care if it is accepted or rejected.
  31.         /// </devdoc>
  32.         Allow,
  33.        
  34.         /// <devdoc>
  35.         /// Specifies that a toolbox item filter string will require custom processing. This is generally
  36.         /// specified on the root designer class to indicate that the designer wishes to accept or reject
  37.         /// a toolbox item through code. The designer must implement IToolboxUser's IsSupported method.
  38.         /// </devdoc>
  39.         Custom,
  40.        
  41.         /// <devdoc>
  42.         /// Specifies that a toolbox item filter string should be rejected. If a designer and a component
  43.         /// class both have the filter string and one has a type of Prevent, the toolbox item will not
  44.         /// be available.
  45.         /// </devdoc>
  46.         Prevent,
  47.        
  48.         /// <devdoc>
  49.         /// Specifies that a toolbox item filter string must be present for a toolbox item to be enabled.
  50.         /// A designer and component class must both have the filter string, and neither may have a filter
  51.         /// type of Prevent.
  52.         /// </devdoc>
  53.         Require
  54.     }
  55. }

Developer Fusion