public override object Clone()
        {
            var vectorStyle = new VectorStyle
            {
                shapeType     = shapeType,
                shapeSize     = shapeSize,
                line          = Line == null ? null : (Pen)Line.Clone(),
                outline       = Outline == null ? null : (Pen)Outline.Clone(),
                fill          = Fill == null ? null : (Brush)Fill.Clone(),
                enableOutline = EnableOutline,
                geometryType  = GeometryType,
                customSymbol  = customSymbol
            };

            if ((customSymbol) && (null != symbol))
            {
                vectorStyle.Symbol = (Bitmap)symbol.Clone();
            }
            else
            {
                vectorStyle.UpdateSymbols();
            }

            vectorStyle.Enabled = Enabled;

            return(vectorStyle);
        }
Esempio n. 2
0
        public override object Clone()
        {
            VectorStyle vectorStyle = new VectorStyle();

            vectorStyle.Shape     = Shape;
            vectorStyle.ShapeSize = ShapeSize;
            if ((customSymbol) && (null != Symbol))
            {
                vectorStyle.Symbol = (Bitmap)Symbol.Clone();
            }

            vectorStyle.Line          = Line == null ? null : (Pen)Line.Clone();
            vectorStyle.Outline       = Outline == null ? null : (Pen)Outline.Clone();
            vectorStyle.EnableOutline = EnableOutline;
            vectorStyle.Fill          = Fill == null ? null : (Brush)Fill.Clone();
            vectorStyle.GeometryType  = GeometryType;
            //NS, 2013-09-17
            //vectorStyle.EnableDashStyle = EnableDashStyle;
            //vectorStyle.DashLine = DashLine == null ? null : (Pen)DashLine.Clone();
            //vectorStyle.DashReverse = DashReverse;
            //NS, 2013-09-23
            //if (_pointBrush != null)
            //    vectorStyle._pointBrush = _pointBrush.Clone() as Brush;
            //NS, 2013-10-02
            //vectorStyle.CircleLine = CircleLine == null ? null : (Pen)CircleLine.Clone();
            //EnOfNS
            return(vectorStyle);
        }
Esempio n. 3
0
        public override object Clone()
        {
            LineRenderingAction clone = new LineRenderingAction();

            clone.X1      = (mvarX1.Clone() as RenderingExpression);
            clone.X2      = (mvarX2.Clone() as RenderingExpression);
            clone.Y1      = (mvarY1.Clone() as RenderingExpression);
            clone.Y2      = (mvarY2.Clone() as RenderingExpression);
            clone.Outline = (mvarOutline.Clone() as Outline);
            return(clone);
        }
        public override object Clone()
        {
            RectangleRenderingAction clone = new RectangleRenderingAction();

            clone.X      = (mvarX.Clone() as RenderingExpression);
            clone.Y      = (mvarY.Clone() as RenderingExpression);
            clone.Width  = (mvarWidth.Clone() as RenderingExpression);
            clone.Height = (mvarHeight.Clone() as RenderingExpression);

            clone.Outline = (mvarOutline.Clone() as Outline);
            clone.Fill    = (mvarFill.Clone() as Fill);
            return(clone);
        }
        internal SLShapeProperties Clone()
        {
            var sp = new SLShapeProperties(listThemeColors);

            sp.HasBlackWhiteMode = HasBlackWhiteMode;
            sp.vBlackWhiteMode   = vBlackWhiteMode;
            sp.HasTransform2D    = HasTransform2D;
            sp.Transform2D       = Transform2D.Clone();
            sp.HasPresetGeometry = HasPresetGeometry;
            sp.vPresetGeometry   = vPresetGeometry;
            sp.Fill       = Fill.Clone();
            sp.Outline    = Outline.Clone();
            sp.EffectList = EffectList.Clone();
            sp.Rotation3D = Rotation3D.Clone();
            sp.Format3D   = Format3D.Clone();

            return(sp);
        }
Esempio n. 6
0
        public override object Clone()
        {
            VectorStyle vectorStyle = new VectorStyle();

            vectorStyle.Shape     = Shape;
            vectorStyle.ShapeSize = ShapeSize;
            if ((_CustomSymbol) && (null != Symbol))
            {
                vectorStyle.Symbol = (Bitmap)Symbol.Clone();
            }

            vectorStyle.Line          = Line == null ? null : (Pen)Line.Clone();
            vectorStyle.Outline       = Outline == null ? null : (Pen)Outline.Clone();
            vectorStyle.EnableOutline = EnableOutline;
            vectorStyle.Fill          = Fill == null ? null : (Brush)Fill.Clone();
            vectorStyle.GeometryType  = GeometryType;

            return(vectorStyle);
        }
Esempio n. 7
0
 public object Clone()
 {
     return(new TextFormatting(Font, Color, (TextOutline)Outline.Clone(), (TextShadow)Shadow.Clone()));
 }