コード例 #1
0
        public override void CopyFrom(DxfHandledObject from, CloneContext cloneContext)
        {
            base.CopyFrom(from, cloneContext);
            DxfBlockBasePointParameter basePointParameter = (DxfBlockBasePointParameter)from;

            this.BasePoint1 = basePointParameter.BasePoint1;
            this.BasePoint2 = basePointParameter.BasePoint2;
        }
コード例 #2
0
        public override IGraphCloneable Clone(CloneContext cloneContext)
        {
            DxfBlockBasePointParameter basePointParameter = (DxfBlockBasePointParameter)cloneContext.GetExistingClone((IGraphCloneable)this);

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