Exemplo n.º 1
0
        public override IGraphCloneable Clone(CloneContext cloneContext)
        {
            DxfBlockXYParameter blockXyParameter = (DxfBlockXYParameter)cloneContext.GetExistingClone((IGraphCloneable)this);

            if (blockXyParameter == null)
            {
                blockXyParameter = new DxfBlockXYParameter();
                cloneContext.RegisterClone((IGraphCloneable)this, (IGraphCloneable)blockXyParameter);
                blockXyParameter.CopyFrom((DxfHandledObject)this, cloneContext);
            }
            return((IGraphCloneable)blockXyParameter);
        }
Exemplo n.º 2
0
        public override void CopyFrom(DxfHandledObject from, CloneContext cloneContext)
        {
            base.CopyFrom(from, cloneContext);
            DxfBlockXYParameter blockXyParameter = (DxfBlockXYParameter)from;

            this.LabelOffsetX       = blockXyParameter.LabelOffsetX;
            this.LabelTextX         = blockXyParameter.LabelTextX;
            this.DescriptionX       = blockXyParameter.DescriptionX;
            this.ParameterValueSetX = (DxfBlockParametersValueSet)blockXyParameter.ParameterValueSetX.Clone(cloneContext);
            this.LabelOffsetY       = blockXyParameter.LabelOffsetY;
            this.LabelTextY         = blockXyParameter.LabelTextY;
            this.DescriptionY       = blockXyParameter.DescriptionY;
            this.ParameterValueSetY = (DxfBlockParametersValueSet)blockXyParameter.ParameterValueSetY.Clone(cloneContext);
        }