예제 #1
0
        public override IGraphCloneable Clone(CloneContext cloneContext)
        {
            DxfMLeaderAnnotationContext annotationContext = (DxfMLeaderAnnotationContext)cloneContext.GetExistingClone((IGraphCloneable)this);

            if (annotationContext == null)
            {
                annotationContext = new DxfMLeaderAnnotationContext();
                cloneContext.RegisterClone((IGraphCloneable)this, (IGraphCloneable)annotationContext);
                annotationContext.CopyFrom((DxfHandledObject)this, cloneContext);
            }
            return((IGraphCloneable)annotationContext);
        }
예제 #2
0
 private void method_8(DxfMLeaderAnnotationContext from, CloneContext cloneContext)
 {
     this.list_0.Clear();
     foreach (MLeader.LeaderNode leaderNode in from.list_0)
     {
         this.list_0.Add(leaderNode.Clone(cloneContext));
     }
     this.double_0          = from.double_0;
     this.point3D_0         = from.point3D_0;
     this.double_1          = from.double_1;
     this.double_2          = from.double_2;
     this.double_3          = from.double_3;
     this.textAttachment_0  = from.textAttachment_0;
     this.textAttachment_1  = from.textAttachment_1;
     this.blockAttachment_0 = from.blockAttachment_0;
     this.bool_1            = from.bool_1;
     this.bool_2            = from.bool_2;
     this.plane3D_0         = from.plane3D_0;
     this.point3D_1         = from.point3D_1;
     this.vector3D_0        = from.vector3D_0;
     this.vector3D_1        = from.vector3D_1;
     this.bool_3            = from.bool_3;
     this.contentType_0     = from.contentType_0;
     this.textAttachment_2  = from.textAttachment_2;
     this.textAttachment_3  = from.textAttachment_3;
     if (from.content_0 == null)
     {
         this.content_0 = (MLeader.Content)null;
     }
     else if (this.content_0 != null && !(this.content_0.GetType() != from.content_0.GetType()))
     {
         this.content_0.CopyFrom(from.content_0, cloneContext);
     }
     else
     {
         this.content_0 = from.content_0.Clone(cloneContext);
     }
 }