Пример #1
0
        /// <summary>
        /// 多线段命令
        /// </summary>
        public PolylineAction PolylineAction(Color?penColor = null, int lineWidth = 1, Color?fill = null, dynamic Element = null)
        {
            if (penColor == null)
            {
                penColor = Colors.Black;
            }
            var a = new PolylineAction();

            a.Geometry.Element   = Element;
            a.Geometry.PenColor  = penColor.Value;
            a.Geometry.LineWidth = lineWidth;
            if (fill != null)
            {
                a.Geometry.FillColor = fill.Value;
            }
            DrawingControl.SetAction(a);
            LastAction = a;
            return(a);
        }
Пример #2
0
 private void SetAction(PolylineAction a)
 {
     tip = new SubPolylineTip(DrawingControl, textTip);
     tip.Attention(a);
 }