public override object Clone()
        {
            MPSTextField ret = (MPSTextField)this.MemberwiseClone();

            ret.Borders = this.Borders.Clone();
            ret.Padding = this.Padding.Clone();
            return(ret);
        }
 public void SetTextField(string FieldName, string Text)
 {
     foreach (MPSReportField field in this.Fields.Where(f => f.Name == FieldName))
     {
         if (field.GetType() == typeof(MPSTextField))
         {
             MPSTextField tfield = (MPSTextField)field;
             tfield.Text = Text;
         }
     }
 }