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

            return(shape);
        }