Пример #1
0
        public override IGraphCloneable Clone(CloneContext cloneContext)
        {
            DxfMLeaderStyle dxfMleaderStyle = (DxfMLeaderStyle)cloneContext.GetExistingClone((IGraphCloneable)this);

            if (dxfMleaderStyle == null)
            {
                dxfMleaderStyle = new DxfMLeaderStyle();
                cloneContext.RegisterClone((IGraphCloneable)this, (IGraphCloneable)dxfMleaderStyle);
                dxfMleaderStyle.CopyFrom((DxfHandledObject)this, cloneContext);
            }
            return((IGraphCloneable)dxfMleaderStyle);
        }
Пример #2
0
 private void method_8(CloneContext context, DxfMLeaderStyle from)
 {
     this.contentType_0      = from.contentType_0;
     this.drawMLeaderOrder_0 = from.drawMLeaderOrder_0;
     this.drawLeaderOrder_0  = from.drawLeaderOrder_0;
     this.int_0                     = from.int_0;
     this.double_0                  = from.double_0;
     this.double_1                  = from.double_1;
     this.leaderType_0              = from.leaderType_0;
     this.color_0                   = from.color_0;
     this.LineType                  = Class906.GetLineType(context, from.LineType);
     this.int_1                     = from.int_1;
     this.bool_0                    = from.bool_0;
     this.double_2                  = from.double_2;
     this.bool_1                    = from.bool_1;
     this.double_3                  = from.double_3;
     this.string_0                  = from.string_0;
     this.ArrowHeadBlock            = Class906.smethod_0(context, from.ArrowHeadBlock, false);
     this.double_4                  = from.double_4;
     this.string_1                  = from.string_1;
     this.TextStyle                 = Class906.GetTextStyle(context, from.TextStyle);
     this.textAttachment_0          = from.textAttachment_0;
     this.textAngleType_0           = from.textAngleType_0;
     this.textAlignment_0           = from.textAlignment_0;
     this.textAttachment_1          = from.textAttachment_1;
     this.color_1                   = from.color_1;
     this.double_5                  = from.double_5;
     this.bool_2                    = from.bool_2;
     this.bool_3                    = from.bool_3;
     this.double_6                  = from.double_6;
     this.Block                     = Class906.smethod_0(context, from.Block, false);
     this.color_2                   = from.color_2;
     this.vector3D_0                = from.vector3D_0;
     this.bool_4                    = from.bool_4;
     this.double_7                  = from.double_7;
     this.bool_5                    = from.bool_5;
     this.blockConnectionType_0     = from.blockConnectionType_0;
     this.double_8                  = from.double_8;
     this.bool_6                    = from.bool_6;
     this.bool_7                    = from.bool_7;
     this.double_9                  = from.double_9;
     this.textAttachmentDirection_0 = from.textAttachmentDirection_0;
     this.textAttachment_2          = from.textAttachment_2;
     this.textAttachment_3          = from.textAttachment_3;
     this.bool_8                    = from.bool_8;
 }