public override Shape Clone() { ShapeText newShape = new ShapeText(); newShape.Text = this.text; newShape.Location = new Point(this.Location.X + 15, this.Location.Y + 15); newShape.Size = this.Size; newShape.Font = (Font)this.font.Clone(); newShape.painter.CopyProperties(ref this.painter); newShape.isInitializing = false; if (painter.ColorCount > 1 || painter.PaintBorder) { newShape.GeneratePath(); } this.isSelected = false; return(newShape); }
public override Shape Clone() { ShapeText newShape = new ShapeText(); newShape.Text = this.text; newShape.Location = new Point(this.Location.X + 15, this.Location.Y + 15); newShape.Size = this.Size; newShape.Font = (Font)this.font.Clone(); newShape.painter.CopyProperties(ref this.painter); newShape.isInitializing = false; if (painter.ColorCount > 1 || painter.PaintBorder) newShape.GeneratePath(); this.isSelected = false; return newShape; }