/// <summary> /// 绘制引线的动作 /// </summary> /// <param name="penColor"></param> /// <param name="lineWidth"></param> /// <param name="fillColor"></param> public LegwireAction LegwireAction(Color?penColor = null, int lineWidth = 1, Color?fillColor = null, dynamic Element = null) { if (penColor == null) { penColor = Colors.Black; } var a = new LegwireAction(); a.Geometry.Element = Element; a.Geometry.PenColor = penColor.Value; a.Geometry.LineWidth = lineWidth; if (fillColor != null) { a.Geometry.FillColor = fillColor.Value; } DrawingControl.SetAction(a); LastAction = a; return(a); }
private void SetAction(LegwireAction a) { tip = new SubLegwireTip(DrawingControl, textTip); tip.Attention(a); }