예제 #1
0
파일: DxfTableCell.cs 프로젝트: 15831944/WW
        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);
            }
        }
예제 #2
0
파일: DxfTableCell.cs 프로젝트: 15831944/WW
        public DxfTableCell Clone(CloneContext cloneContext)
        {
            DxfTableCell dxfTableCell = new DxfTableCell();

            dxfTableCell.CopyFrom(cloneContext, this);
            return(dxfTableCell);
        }