public override void CopyFrom(DxfHandledObject from, CloneContext cloneContext) { base.CopyFrom(from, cloneContext); DxfBlockRotateAction blockRotateAction = (DxfBlockRotateAction)from; this.ActionConnection = (DxfConnectionPoint)cloneContext.Clone((IGraphCloneable)blockRotateAction.ActionConnection); }
public override IGraphCloneable Clone(CloneContext cloneContext) { DxfBlockRotateAction blockRotateAction = (DxfBlockRotateAction)cloneContext.GetExistingClone((IGraphCloneable)this); if (blockRotateAction == null) { blockRotateAction = new DxfBlockRotateAction(); cloneContext.RegisterClone((IGraphCloneable)this, (IGraphCloneable)blockRotateAction); blockRotateAction.CopyFrom((DxfHandledObject)this, cloneContext); } return((IGraphCloneable)blockRotateAction); }