code: public TextBox copyTextBox()
      {
          TextBox ret = new TextBox(textNode, g, ctx);
          ret.copyValues(this);
          return ret;
      }
docs: Create a new box from the same DOM node in the same context
  @return the new TextBox