ThemeClasses.cs 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  1. //#########################################################################################
  2. //★★★★★★★ http://www.cnpopsoft.com [华普软件] ★★★★★★★
  3. //★★★★★★★ 华普软件 - VB & C#.NET 专业论文与源码荟萃! ★★★★★★★
  4. //#########################################################################################
  5. /*
  6. * Copyright ?2005, Mathew Hall
  7. * All rights reserved.
  8. *
  9. * Redistribution and use in source and binary forms, with or without modification,
  10. * are permitted provided that the following conditions are met:
  11. *
  12. * - Redistributions of source code must retain the above copyright notice,
  13. * this list of conditions and the following disclaimer.
  14. *
  15. * - Redistributions in binary form must reproduce the above copyright notice,
  16. * this list of conditions and the following disclaimer in the documentation
  17. * and/or other materials provided with the distribution.
  18. *
  19. * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
  20. * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
  21. * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  22. * IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
  23. * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
  24. * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
  25. * OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
  26. * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  27. * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
  28. * OF SUCH DAMAGE.
  29. */
  30. using System;
  31. namespace XPTable.Themes
  32. {
  33. /// <summary>
  34. /// Represents the different types of objects that can be
  35. /// drawn by the Windows XP theme engine
  36. /// </summary>
  37. public sealed class ThemeClasses
  38. {
  39. #region Constructor
  40. /// <summary>
  41. /// Private constructor so that the class can't be instantiated
  42. /// </summary>
  43. private ThemeClasses()
  44. {
  45. }
  46. #endregion
  47. #region Properties
  48. /// <summary>
  49. /// Button objects (Button, CheckBox, RadioButton)
  50. /// </summary>
  51. public static string Button
  52. {
  53. get
  54. {
  55. return "BUTTON";
  56. }
  57. }
  58. /// <summary>
  59. /// ComboBox objects
  60. /// </summary>
  61. public static string ComboBox
  62. {
  63. get
  64. {
  65. return "COMBOBOX";
  66. }
  67. }
  68. /// <summary>
  69. /// TextBox objects
  70. /// </summary>
  71. public static string TextBox
  72. {
  73. get
  74. {
  75. return "EDIT";
  76. }
  77. }
  78. /// <summary>
  79. /// ColumnHeader objects
  80. /// </summary>
  81. public static string ColumnHeader
  82. {
  83. get
  84. {
  85. return "HEADER";
  86. }
  87. }
  88. /// <summary>
  89. /// ListView objects
  90. /// </summary>
  91. public static string ListView
  92. {
  93. get
  94. {
  95. return "LISTVIEW";
  96. }
  97. }
  98. /// <summary>
  99. /// ProgressBar objects
  100. /// </summary>
  101. public static string ProgressBar
  102. {
  103. get
  104. {
  105. return "PROGRESS";
  106. }
  107. }
  108. /// <summary>
  109. /// TabControl objects
  110. /// </summary>
  111. internal static string TabControl
  112. {
  113. get
  114. {
  115. return "TAB";
  116. }
  117. }
  118. /// <summary>
  119. /// UpDown objects
  120. /// </summary>
  121. public static string UpDown
  122. {
  123. get
  124. {
  125. return "SPIN";
  126. }
  127. }
  128. #endregion
  129. }
  130. }