internal ChannelCurveStyle() { lineWidth = 1; lineColor = Color.Yellow; showIcon = false; iconLineWidth = 1; iconSize = new Size(5, 5); iconStyle = CurveIconStyle.cisSolidSquare; }
/// <summary> /// 设置通道线形态及其可见性,通道以index为通道号 /// </summary> /// <param name="index"></param> /// <param name="cis"></param> /// <param name="value"></param> public void SetChannelIcon(int index, CurveIconStyle cis, bool value) { plot.SetCurveIcon(index, cis, value); }
//设置曲线图标形状类型,及其可见性 public void SetCurveIcon(int index, CurveIconStyle cis, bool value) { Channel chnl = chnls.ChannelOf(index); if (chnl != null) { chnl.ccStyle.iconStyle = cis; chnl.ccStyle.showIcon = value; } }