using PaintDotNet.Data.Param; using System.Drawing; namespace PaintDotNet.Data.Action { /// /// 晶粒度手动测量 /// public class Action11012111 : ActionAnalysis { public Action11012111() : base() { this.MenuId = ActionType.GrainSizeCutOffManualMethod; this.OpenImage = "current"; //显示晶界 BooleanObject five = new BooleanObject(); five.key = "displaygrainboundaries"; five.name = "显示晶界"; five.initialValue = false; five.Value = false; lists.Add(five); //字号 IntegerNumber one = new IntegerNumber(0, 50); one.key = "MainFontSize"; one.name = "字号"; one.initialValue = 1; one.value = 1; lists.Add(one); //字体颜色 ColorNumber two = new ColorNumber(); two.key = "MainFontColor"; two.name = "字体颜色"; two.Value = Color.Yellow.ToArgb(); lists.Add(two); //线宽 IntegerNumber three = new IntegerNumber(0, 50); three.key = "MainLineWidth"; three.name = "线宽"; three.initialValue = 1; three.value = 1; lists.Add(three); //截距颜色 ColorNumber four = new ColorNumber(); four.key = "MainLineColor"; four.name = "截距颜色"; four.Value = Color.Blue.ToArgb(); lists.Add(four); } } }