Esempio n. 1
0
        public override Visual Clone()
        {
            var copy = new VisualText(_rectangle.Location, _text);

            copy.Prototype(this);
            return(copy);
        }
Esempio n. 2
0
        protected void Prototype(VisualText other)
        {
            base.Prototype(other);

            this.Text = other.Text;
            this.Font = other.Font;
            this.TextHorizontalAlign = other.TextHorizontalAlign;
        }
 public override Visual Clone()
 {
     var copy = new VisualText(_rectangle.Location, _text);
     copy.Prototype(this);
     return copy;
 }
        protected void Prototype(VisualText other)
        {
            base.Prototype(other);

            this.Text = other.Text;
            this.Font = other.Font;
            this.TextHorizontalAlign = other.TextHorizontalAlign;
        }