/// <summary> /// Copy of the shape. /// </summary> /// <returns>New shape with properties of existing shape</returns> public override VectorShape Duplicate() { CompoundShape duplicate = Create(); foreach (VectorShape component in components) { duplicate.AddComponent(component.Duplicate()); } return(duplicate); }