Action11012111.cs 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. using PaintDotNet.Data.Param;
  2. using System.Drawing;
  3. namespace PaintDotNet.Data.Action
  4. {
  5. /// <summary>
  6. /// 晶粒度手动测量
  7. /// </summary>
  8. public class Action11012111 : ActionAnalysis
  9. {
  10. public Action11012111() : base()
  11. {
  12. this.MenuId = ActionType.GrainSizeCutOffManualMethod;
  13. this.OpenImage = "current";
  14. //显示晶界
  15. BooleanObject five = new BooleanObject();
  16. five.key = "displaygrainboundaries";
  17. five.name = "显示晶界";
  18. five.initialValue = false;
  19. five.Value = false;
  20. lists.Add(five);
  21. //字号
  22. IntegerNumber one = new IntegerNumber(0, 50);
  23. one.key = "MainFontSize";
  24. one.name = "字号";
  25. one.initialValue = 1;
  26. one.value = 1;
  27. lists.Add(one);
  28. //字体颜色
  29. ColorNumber two = new ColorNumber();
  30. two.key = "MainFontColor";
  31. two.name = "字体颜色";
  32. two.Value = Color.Yellow.ToArgb();
  33. lists.Add(two);
  34. //线宽
  35. IntegerNumber three = new IntegerNumber(0, 50);
  36. three.key = "MainLineWidth";
  37. three.name = "线宽";
  38. three.initialValue = 1;
  39. three.value = 1;
  40. lists.Add(three);
  41. //截距颜色
  42. ColorNumber four = new ColorNumber();
  43. four.key = "MainLineColor";
  44. four.name = "截距颜色";
  45. four.Value = Color.Blue.ToArgb();
  46. lists.Add(four);
  47. }
  48. }
  49. }