/// <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); }
private void SetAction(PolylineAction a) { tip = new SubPolylineTip(DrawingControl, textTip); tip.Attention(a); }