public override string XGetDesignTimeHtml()
{
StringWriter writer = new StringWriter(CultureInfo.CurrentCulture);
HtmlTextWriter htmlWriter = new HtmlTextWriter(writer);
TextField c = (TextField)this.Control;
string width = (c.Width != Unit.Empty) ? " width: {0};".FormatWith((c.Grow && c.GrowMin.Value > c.Width.Value) ? c.GrowMin.ToString() : c.Width.ToString()) : "";
string height = (c.Height != Unit.Empty) ? " height: {0};".FormatWith(c.Height.ToString()) : "";
object[] args = new object[7];
args[0] = c.ClientID;
args[1] = c.Text.IsEmpty() ? c.EmptyText : c.Text;
args[2] = c.InputType.ToString().ToLower();
args[3] = width;
args[4] = height;
args[5] = c.StyleSpec;
args[6] = "x-form-text x-form-field " + (c.Text.IsEmpty() ? "x-form-empty-field " : "") + c.Cls;
LiteralControl ctrl = new LiteralControl(string.Format(this.Html, args));
ctrl.RenderControl(htmlWriter);
return writer.ToString();
}