public override BaseShape CopySelf()//重写身复制方法 { EllipseShape copyEllipseShape = new EllipseShape(); copyEllipseShape.SetP1(GetP1()); //复制起点 copyEllipseShape.SetP2(GetP2()); //复制终点 copyEllipseShape.PenColor = PenColor; copyEllipseShape.Penwidth = Penwidth; return(copyEllipseShape); }
public override BaseShape copySelf()//重写身复制方法 { EllipseShape copyEllipseShape = new EllipseShape(); copyEllipseShape.setP1(this.getP1()); //复制起点 copyEllipseShape.setP2(this.getP2()); //复制终点 copyEllipseShape.penColor = this.penColor; copyEllipseShape.penwidth = this.penwidth; return(copyEllipseShape); }