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); }
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); }