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