示例#1
0
        public override void CopyFrom(DxfHandledObject from, CloneContext cloneContext)
        {
            base.CopyFrom(from, cloneContext);
            DxfHatchViewContextData hatchViewContextData = (DxfHatchViewContextData)from;

            this.dxfObjectReference_4 = hatchViewContextData.dxfObjectReference_4;
            this.vector3D_1           = hatchViewContextData.vector3D_1;
            this.double_1             = hatchViewContextData.double_1;
            this.bool_1 = hatchViewContextData.bool_1;
        }
示例#2
0
        public override IGraphCloneable Clone(CloneContext cloneContext)
        {
            DxfHatchViewContextData hatchViewContextData = (DxfHatchViewContextData)cloneContext.GetExistingClone((IGraphCloneable)this);

            if (hatchViewContextData == null)
            {
                hatchViewContextData = new DxfHatchViewContextData();
                cloneContext.RegisterClone((IGraphCloneable)this, (IGraphCloneable)hatchViewContextData);
                hatchViewContextData.CopyFrom((DxfHandledObject)this, cloneContext);
            }
            return((IGraphCloneable)hatchViewContextData);
        }