public override Container GetBounds() { return(new Container() { TopLeft = TopLeft.Clone(), BottomRight = BottomRight.Clone() }); }
public object Clone() { var rectangle = (Rectangle)MemberwiseClone(); rectangle.TopLeft = (Point)TopLeft.Clone(); rectangle.BotRight = (Point)BotRight.Clone(); return(rectangle); }
public override Shape DeepClone() { return(new FilledRectangle(TopLeft.Clone(), BottomRight.Clone(), Width, Color)); }