Exemple #1
0
        public override void CopyFrom(DxfHandledObject from, CloneContext cloneContext)
        {
            base.CopyFrom(from, cloneContext);
            DxfPlotSettings dxfPlotSettings = (DxfPlotSettings)from;

            this.string_0              = dxfPlotSettings.string_0;
            this.string_1              = dxfPlotSettings.string_1;
            this.string_2              = dxfPlotSettings.string_2;
            this.string_3              = dxfPlotSettings.string_3;
            this.double_0              = dxfPlotSettings.double_0;
            this.double_1              = dxfPlotSettings.double_1;
            this.double_2              = dxfPlotSettings.double_2;
            this.double_3              = dxfPlotSettings.double_3;
            this.size2D_0              = dxfPlotSettings.size2D_0;
            this.point2D_0             = dxfPlotSettings.point2D_0;
            this.rectangle2D_0         = dxfPlotSettings.rectangle2D_0;
            this.double_4              = dxfPlotSettings.double_4;
            this.double_5              = dxfPlotSettings.double_5;
            this.plotLayoutFlags_0     = dxfPlotSettings.plotLayoutFlags_0;
            this.plotPaperUnits_0      = dxfPlotSettings.plotPaperUnits_0;
            this.plotRotation_0        = dxfPlotSettings.plotRotation_0;
            this.plotArea_0            = dxfPlotSettings.plotArea_0;
            this.string_4              = dxfPlotSettings.string_4;
            this.short_0               = dxfPlotSettings.short_0;
            this.shadePlotMode_0       = dxfPlotSettings.shadePlotMode_0;
            this.shadePlotResolution_0 = dxfPlotSettings.shadePlotResolution_0;
            this.short_1               = dxfPlotSettings.short_1;
            this.double_6              = dxfPlotSettings.double_6;
            this.point2D_1             = dxfPlotSettings.point2D_1;
        }
Exemple #2
0
        public override IGraphCloneable Clone(CloneContext cloneContext)
        {
            DxfPlotSettings dxfPlotSettings = (DxfPlotSettings)cloneContext.GetExistingClone((IGraphCloneable)this);

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