State.cs 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. namespace Microsoft.Windows.Forms
  2. {
  3. /// <summary>
  4. /// 控件的状态。(Disabled)(Focused与Noraml,Hovered,Pressed组合)
  5. /// </summary>
  6. public enum State : int
  7. {
  8. /// <summary>
  9. /// 正常
  10. /// </summary>
  11. Normal = 0,
  12. /// <summary>
  13. /// 正常焦点
  14. /// </summary>
  15. NormalFocused = 1,
  16. /// <summary>
  17. /// 鼠标移上
  18. /// </summary>
  19. Hovered = 2,
  20. /// <summary>
  21. /// 鼠标移上焦点
  22. /// </summary>
  23. HoveredFocused = 3,
  24. /// <summary>
  25. /// 鼠标按下
  26. /// </summary>
  27. Pressed = 4,
  28. /// <summary>
  29. /// 鼠标按下焦点
  30. /// </summary>
  31. PressedFocused = 5,
  32. /// <summary>
  33. /// 禁用
  34. /// </summary>
  35. Disabled = 6,
  36. /// <summary>
  37. /// 隐藏
  38. /// </summary>
  39. Hidden = 7,
  40. /// <summary>
  41. /// 高亮突出
  42. /// </summary>
  43. Highlight = 8,
  44. }
  45. }