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

            this.StartPoint  = rotationParameter.StartPoint;
            this.LabelOffset = rotationParameter.LabelOffset;
            this.LabelText   = rotationParameter.LabelText;
            this.Description = rotationParameter.Description;
            this.Angle       = (DxfBlockParametersValueSet)rotationParameter.Angle.Clone(cloneContext);
        }
コード例 #2
0
        public override IGraphCloneable Clone(CloneContext cloneContext)
        {
            DxfBlockRotationParameter rotationParameter = (DxfBlockRotationParameter)cloneContext.GetExistingClone((IGraphCloneable)this);

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