public void CopyFrom(CloneContext cloneContext, DxfTableCell from) { this.tableCellStateFlags_0 = from.tableCellStateFlags_0; this.string_0 = from.string_0; foreach (DxfTableCustomData dxfTableCustomData in (List <DxfTableCustomData>)from.dxfTableCustomDataCollection_0) { this.dxfTableCustomDataCollection_0.Add(dxfTableCustomData.Clone(cloneContext)); } this.int_0 = from.int_0; this.int_1 = from.int_1; this.dxfTableCellLinkedData_0 = from.dxfTableCellLinkedData_0 != null?from.dxfTableCellLinkedData_0.Clone(cloneContext) : (DxfTableCellLinkedData)null; foreach (DxfTableCellContent tableCellContent in (List <DxfTableCellContent>)from.dxfTableCellContentCollection_0) { this.dxfTableCellContentCollection_0.Add(tableCellContent.Clone(cloneContext)); } this.dxfTableCellStyle_0 = (DxfTableCellStyle)cloneContext.Clone((IGraphCloneable)from.dxfTableCellStyle_0); this.dxfTableCellStyle_1 = cloneContext.SourceModel != cloneContext.TargetModel ? (DxfTableCellStyle)cloneContext.Clone((IGraphCloneable)from.dxfTableCellStyle_1) : from.dxfTableCellStyle_1; this.class550_0 = from.class550_0 != null?from.class550_0.Clone() : (Class550)null; this.int_2 = from.int_2; this.int_3 = from.int_3; this.int_4 = from.int_4; this.double_0 = from.double_0; this.double_1 = from.double_1; if (cloneContext.SourceModel == cloneContext.TargetModel) { this.UnknownObject = from.UnknownObject; } else { this.UnknownObject = (DxfHandledObject)cloneContext.Clone((IGraphCloneable)from.UnknownObject); } }
private static sprᲆ smethod_7(GraphicsPath A_0, sprᧂ A_1, sprᧂ A_2, bool A_3, float A_4, SizeF A_5) { float left; float top; float width; float height; if (A_3) { RectangleF bounds = A_0.GetBounds(); left = bounds.Left; top = bounds.Top; width = bounds.Width; height = bounds.Height; } else { left = 0f; top = 0f; width = A_5.Width; height = A_4; } PointF[] pathPoints = A_0.PathPoints; Class550 class2 = new Class550(); for (int i = 0; i < pathPoints.Length; i++) { PointF tf4 = pathPoints[i]; float num9 = tf4.X - left; float num10 = tf4.Y - top; float num5 = num9 / width; float num7 = num10 / height; if (num5 > 1f) { num5 = 1f; } if (num7 > 1f) { num7 = 1f; } PointF tf = class2.method_1(A_1, num5); PointF tf2 = class2.method_1(A_2, num5); float num6 = Class550.smethod_1(tf, tf2); pathPoints[i] = Class550.smethod_0(tf, tf2, num6 * num7); } return(smethod_8(pathPoints, A_0.PathTypes)); }