Пример #1
0
        public override void CopyFrom(DxfHandledObject from, CloneContext cloneContext)
        {
            base.CopyFrom(from, cloneContext);
            DxfBlockLinearParameter blockLinearParameter = (DxfBlockLinearParameter)from;

            this.LabelOffset = blockLinearParameter.LabelOffset;
            this.LabelText   = blockLinearParameter.LabelText;
            this.Description = blockLinearParameter.Description;
            this.Distance    = (DxfBlockParametersValueSet)blockLinearParameter.Distance.Clone(cloneContext);
        }
Пример #2
0
        public override IGraphCloneable Clone(CloneContext cloneContext)
        {
            DxfBlockLinearParameter blockLinearParameter = (DxfBlockLinearParameter)cloneContext.GetExistingClone((IGraphCloneable)this);

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