# clone method

TextField clone()

Creates a copy of the TextField object.

return The newly created TextField object. throws DocumentException An error has occurred during Document Library execution.

## Implementation

    TextField clone() {
      TextField clone = TextField();
      var err = documentSDK.id3DocumentTextField_CopyTo(_pHandle.value, clone.handle);
      if (err != DocumentError.success.value) {
        throw DocumentException(err);
      }
      return clone;
    }