/// <summary> /// 绘制椭圆动作 /// </summary> public EllipseAction EllipseAction(Color?penColor = null, int lineWidth = 1, Color?fill = null, dynamic Element = null) { if (penColor == null) { penColor = Colors.Black; } var a = new EllipseAction(); a.Geometry.PenColor = penColor.Value; a.Geometry.LineWidth = lineWidth; a.Geometry.Element = Element; if (fill != null) { a.Geometry.FillColor = fill.Value; } DrawingControl.SetAction(a); LastAction = a; return(a); }
private void SetAction(EllipseAction a) { tip = new SubEllipseTip(DrawingControl, textTip); tip.Attention(a); }