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

  1. //------------------------------------------------------------------------------
  2. // <copyright file="SelectionTypes.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.Diagnostics;
  20.     using System;
  21.     using System.ComponentModel;
  22.     using Microsoft.Win32;
  23.    
  24.     /// <devdoc>
  25.     /// Specifies identifiers
  26.     /// that indicate the type
  27.     /// of selection for a component or group of components that are selected.
  28.     /// </devdoc>
  29.     [Flags(), System.Runtime.InteropServices.ComVisible(true)]
  30.     public enum SelectionTypes
  31.     {
  32.        
  33.         /// <devdoc>
  34.         /// A Normal selection. With this type of selection, the selection service responds
  35.         /// to the control and shift keys to support appending or toggling components into the
  36.         /// selection as needed.
  37.         /// </devdoc>
  38.         Auto = 1,
  39.        
  40.         /// <devdoc>
  41.         /// A Normal selection. With this type of selection, the selection service responds
  42.         /// to the control and shift keys to support appending or toggling components into the
  43.         /// selection as needed.
  44.         /// </devdoc>
  45.         [Obsolete("This value has been deprecated. Use SelectionTypes.Auto instead. http://go.microsoft.com/fwlink/?linkid=14202")]
  46.         Normal = 1,
  47.        
  48.         /// <devdoc>
  49.         /// A Replace selection. This causes the selection service to always replace the
  50.         /// current selection with the replacement.
  51.         /// </devdoc>
  52.         Replace = 2,
  53.        
  54.         /// <devdoc>
  55.         /// A MouseDown selection. Happens when the user presses down on
  56.         /// the mouse button when the pointer is over a control (or component). If a
  57.         /// component in the selection list is already selected, it does not remove the
  58.         /// existing selection, but promotes that component to be the primary selection.
  59.         /// </devdoc>
  60.         [Obsolete("This value has been deprecated. It is no longer supported. http://go.microsoft.com/fwlink/?linkid=14202")]
  61.         MouseDown = 4,
  62.        
  63.         /// <devdoc>
  64.         /// A MouseUp selection. Happens when the user releases the
  65.         /// mouse button when a control (or component) has been selected. If a component
  66.         /// in the selection list is already selected, it does not remove the
  67.         /// existing selection, but promotes that component to be the primary selection.
  68.         /// </devdoc>
  69.         [Obsolete("This value has been deprecated. It is no longer supported. http://go.microsoft.com/fwlink/?linkid=14202")]
  70.         MouseUp = 8,
  71.        
  72.         /// <devdoc>
  73.         /// A Click selection.
  74.         /// Happens when a user clicks on a component. If a component in the selection list is already
  75.         /// selected, it does not remove the existing selection, but promotes that component to be the
  76.         /// primary selection.
  77.         /// </devdoc>
  78.         [Obsolete("This value has been deprecated. Use SelectionTypes.Primary instead. http://go.microsoft.com/fwlink/?linkid=14202")]
  79.         Click = 16,
  80.        
  81.         /// <devdoc>
  82.         /// A Primary selection.
  83.         /// Happens when a user clicks on a component. If a component in the selection list is already
  84.         /// selected, it does not remove the existing selection, but promotes that component to be the
  85.         /// primary selection.
  86.         /// </devdoc>
  87.         Primary = 16,
  88.        
  89.         /// <devdoc>
  90.         /// A toggle selection.
  91.         /// This selection toggles the current selection with the provided selection. So, if
  92.         /// a component is already selected and is passed into SetSelectedComponents with a
  93.         /// selection type of Toggle, it will be unselected.
  94.         /// </devdoc>
  95.         Toggle = 32,
  96.        
  97.         /// <devdoc>
  98.         /// An Add selection.
  99.         /// This selection adds the selected components to the current selection,
  100.         /// maintaining the current set of selected components.
  101.         /// </devdoc>
  102.         Add = 64,
  103.        
  104.         /// <devdoc>
  105.         /// A Remove selection.
  106.         /// This selection removes the selected components from the current selection,
  107.         /// maintaining the current set of selected components.
  108.         /// </devdoc>
  109.         Remove = 128,
  110.        
  111.         /// <devdoc>
  112.         /// Limits valid selection types to Normal, Replace, MouseDown, MouseUp,
  113.         /// Click, Toggle or Add.
  114.         /// </devdoc>
  115.         [Obsolete("This value has been deprecated. Use Enum class methods to determine valid values, or use a type converter. http://go.microsoft.com/fwlink/?linkid=14202")]
  116.         Valid = 31
  117.     }
  118. }

Developer Fusion