Beispiel #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;
 }
Beispiel #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);
        }