public void CopyFrom(DxfContentFormat from, CloneContext cloneContext) { if (from.TextStyle == null) { this.dxfTextStyle_0 = (DxfTextStyle)null; } else if (cloneContext.SourceModel == cloneContext.TargetModel) { this.dxfTextStyle_0 = from.dxfTextStyle_0; } else if (!cloneContext.TargetModel.TextStyles.TryGetValue(from.dxfTextStyle_0.Name, out this.dxfTextStyle_0)) { if (cloneContext.ReferenceResolutionType == ReferenceResolutionType.CloneMissing) { this.dxfTextStyle_0 = (DxfTextStyle)from.dxfTextStyle_0.Clone(cloneContext); if (!cloneContext.CloneExact) { cloneContext.TargetModel.TextStyles.Add(this.dxfTextStyle_0); } } else if (cloneContext.ReferenceResolutionType == ReferenceResolutionType.FailOnMissing) { throw new DxfException("Missing text style with name " + from.dxfTextStyle_0.Name + " in target model."); } } this.double_0 = from.double_0; this.cellAlignment_0 = from.cellAlignment_0; this.color_0 = from.color_0; this.dxfValueFormat_0 = from.dxfValueFormat_0.Clone(); this.double_1 = from.double_1; this.short_0 = from.short_0; this.tableCellStylePropertyFlags_0 = from.tableCellStylePropertyFlags_0; this.tableCellStylePropertyFlags_1 = from.tableCellStylePropertyFlags_1; this.double_2 = from.double_2; }
public void CopyFrom(DxfTableCellStyle from, CloneContext cloneContext) { this.CopyFrom((DxfContentFormat)from, cloneContext); this.string_0 = from.string_0; this.color_1 = from.color_1; this.int_0 = from.int_0; this.cellType_0 = from.cellType_0; this.tableCellStylePropertyFlags_2 = from.tableCellStylePropertyFlags_2; this.bool_0 = from.bool_0; this.double_3 = from.double_3; this.double_4 = from.double_4; this.dxfTableBorder_0.CopyFrom(from.dxfTableBorder_0, cloneContext); this.dxfTableBorder_1.CopyFrom(from.dxfTableBorder_1, cloneContext); this.dxfTableBorder_2.CopyFrom(from.dxfTableBorder_2, cloneContext); this.dxfTableBorder_3.CopyFrom(from.dxfTableBorder_3, cloneContext); this.dxfTableBorder_4.CopyFrom(from.dxfTableBorder_4, cloneContext); this.dxfTableBorder_5.CopyFrom(from.dxfTableBorder_5, cloneContext); this.enum22_0 = from.enum22_0; this.tableCellStylePropertyFlags_3 = from.tableCellStylePropertyFlags_3; this.tableCellContentLayoutFlags_0 = from.tableCellContentLayoutFlags_0; this.short_1 = from.short_1; this.double_5 = from.double_5; this.double_6 = from.double_6; this.double_7 = from.double_7; this.double_8 = from.double_8; }
internal void method_12(TableCellStylePropertyFlags mergeFlags) { this.tableCellStylePropertyFlags_2 = mergeFlags; }