Sprite.Property.09.TextAndImage.cs 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. using System.Windows.Forms;
  2. namespace Microsoft.Windows.Forms
  3. {
  4. public partial class Sprite
  5. {
  6. private Padding m_Padding = new Padding(3);
  7. /// <summary>
  8. /// 文本图片内边距
  9. /// </summary>
  10. public Padding Padding
  11. {
  12. get
  13. {
  14. return this.m_Padding;
  15. }
  16. set
  17. {
  18. if (value != this.m_Padding)
  19. {
  20. this.m_Padding = value;
  21. this.Feedback();
  22. }
  23. }
  24. }
  25. private TextImageRelation m_TextImageRelation = TextImageRelation.ImageBeforeText;
  26. /// <summary>
  27. /// 文本图片关系
  28. /// </summary>
  29. public TextImageRelation TextImageRelation
  30. {
  31. get
  32. {
  33. return this.m_TextImageRelation;
  34. }
  35. set
  36. {
  37. if (value != this.m_TextImageRelation)
  38. {
  39. this.m_TextImageRelation = value;
  40. this.Feedback();
  41. }
  42. }
  43. }
  44. private RightToLeft m_RightToLeft = RightToLeft.No;
  45. /// <summary>
  46. /// 文本图片左右互换
  47. /// </summary>
  48. public RightToLeft RightToLeft
  49. {
  50. get
  51. {
  52. return this.m_RightToLeft;
  53. }
  54. set
  55. {
  56. if (value != this.m_RightToLeft)
  57. {
  58. this.m_RightToLeft = value;
  59. this.Feedback();
  60. }
  61. }
  62. }
  63. }
  64. }