public override Element Copy() { var newE = new BoxText(Location0.X, Location0.Y, Location1.X, Location1.Y) { PenColor = PenColor, PenWidth = PenWidth, FillColor = FillColor, IsFilled = IsFilled, IsLine = IsLine, Alpha = Alpha, dashStyle = dashStyle, ShowBorder = ShowBorder, OnGrpXRes = OnGrpXRes, OnGrpX1Res = OnGrpX1Res, OnGrpYRes = OnGrpYRes, OnGrpY1Res = OnGrpY1Res }; newE.copyGradprop(this); newE.rtf = rtf; return(newE); }