Sprite.Property.07.BackgroundImage9.cs 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188
  1. using System.Drawing;
  2. using System.Windows.Forms;
  3. namespace Microsoft.Windows.Forms
  4. {
  5. public partial class Sprite
  6. {
  7. private Image m_BackgroundImage9 = null;
  8. /// <summary>
  9. /// 九宫格背景图
  10. /// </summary>
  11. public Image BackgroundImage9
  12. {
  13. get
  14. {
  15. return this.m_BackgroundImage9;
  16. }
  17. set
  18. {
  19. if (value != this.m_BackgroundImage9)
  20. {
  21. this.m_BackgroundImage9 = value;
  22. this.Feedback();
  23. }
  24. }
  25. }
  26. private Image m_BackgroundImage9Hovered = null;
  27. /// <summary>
  28. /// 鼠标移上九宫格背景图
  29. /// </summary>
  30. public Image BackgroundImage9Hovered
  31. {
  32. get
  33. {
  34. return this.m_BackgroundImage9Hovered;
  35. }
  36. set
  37. {
  38. if (value != this.m_BackgroundImage9Hovered)
  39. {
  40. this.m_BackgroundImage9Hovered = value;
  41. this.Feedback();
  42. }
  43. }
  44. }
  45. private Image m_BackgroundImage9Pressed = null;
  46. /// <summary>
  47. /// 鼠标按下九宫格背景图
  48. /// </summary>
  49. public Image BackgroundImage9Pressed
  50. {
  51. get
  52. {
  53. return this.m_BackgroundImage9Pressed;
  54. }
  55. set
  56. {
  57. if (value != this.m_BackgroundImage9Pressed)
  58. {
  59. this.m_BackgroundImage9Pressed = value;
  60. this.Feedback();
  61. }
  62. }
  63. }
  64. private Image m_BackgroundImage9Focused = null;
  65. /// <summary>
  66. /// 获取焦点九宫格背景图
  67. /// </summary>
  68. public Image BackgroundImage9Focused
  69. {
  70. get
  71. {
  72. return this.m_BackgroundImage9Focused;
  73. }
  74. set
  75. {
  76. if (value != this.m_BackgroundImage9Focused)
  77. {
  78. this.m_BackgroundImage9Focused = value;
  79. this.Feedback();
  80. }
  81. }
  82. }
  83. private Image m_BackgroundImage9Disabled = null;
  84. /// <summary>
  85. /// 状态禁用九宫格背景图
  86. /// </summary>
  87. public Image BackgroundImage9Disabled
  88. {
  89. get
  90. {
  91. return this.m_BackgroundImage9Disabled;
  92. }
  93. set
  94. {
  95. if (value != this.m_BackgroundImage9Disabled)
  96. {
  97. this.m_BackgroundImage9Disabled = value;
  98. this.Feedback();
  99. }
  100. }
  101. }
  102. private Image m_BackgroundImage9Highlight = null;
  103. /// <summary>
  104. /// 高亮九宫格背景图
  105. /// </summary>
  106. public Image BackgroundImage9Highlight
  107. {
  108. get
  109. {
  110. return this.m_BackgroundImage9Highlight;
  111. }
  112. set
  113. {
  114. if (value != this.m_BackgroundImage9Highlight)
  115. {
  116. this.m_BackgroundImage9Highlight = value;
  117. this.Feedback();
  118. }
  119. }
  120. }
  121. private Padding m_BackgroundImage9Padding = Padding.Empty;
  122. /// <summary>
  123. /// 九宫格背景图内边距
  124. /// </summary>
  125. public Padding BackgroundImage9Padding
  126. {
  127. get
  128. {
  129. return this.m_BackgroundImage9Padding;
  130. }
  131. set
  132. {
  133. if (value != this.m_BackgroundImage9Padding)
  134. {
  135. this.m_BackgroundImage9Padding = value;
  136. this.Feedback();
  137. }
  138. }
  139. }
  140. private ImageLayout9 m_BackgroundImage9Layout = ImageLayout9.None;
  141. /// <summary>
  142. /// 九宫格背景图布局方式
  143. /// </summary>
  144. public ImageLayout9 BackgroundImage9Layout
  145. {
  146. get
  147. {
  148. return this.m_BackgroundImage9Layout;
  149. }
  150. set
  151. {
  152. if (value != this.m_BackgroundImage9Layout)
  153. {
  154. this.m_BackgroundImage9Layout = value;
  155. this.Feedback();
  156. }
  157. }
  158. }
  159. private bool m_BackgroundImage9GrayOnDisabled = false;
  160. /// <summary>
  161. /// 状态禁用时九宫格背景图是否变灰
  162. /// </summary>
  163. public bool BackgroundImage9GrayOnDisabled
  164. {
  165. get
  166. {
  167. return this.m_BackgroundImage9GrayOnDisabled;
  168. }
  169. set
  170. {
  171. if (value != this.m_BackgroundImage9GrayOnDisabled)
  172. {
  173. this.m_BackgroundImage9GrayOnDisabled = value;
  174. this.Feedback();
  175. }
  176. }
  177. }
  178. }
  179. }