Exemple #1
0
 public override ShapeBase Clone()
 {
     var shape = new FreePencil
     {
         Location = Location,
         Size = Size,
         DrawMethod = DrawMethod,
         OutlineColor = OutlineColor,
         OutlineWidth = OutlineWidth,
         FillColor = FillColor,
         IsClosedFigure = IsClosedFigure,
         Vertices = (VertexCollection)Vertices.Clone()
     };
     return shape;
 }
Exemple #2
0
        public override ShapeBase Clone()
        {
            var shape = new FreePencil
            {
                Location       = Location,
                Size           = Size,
                DrawMethod     = DrawMethod,
                OutlineColor   = OutlineColor,
                OutlineWidth   = OutlineWidth,
                FillColor      = FillColor,
                IsClosedFigure = IsClosedFigure,
                Vertices       = (VertexCollection)Vertices.Clone()
            };

            return(shape);
        }