Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
 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;
 }