Hide navigation sidebar
Hide table of contents sidebar
Skip to content
Back to top
Toggle table of contents sidebar

# TextField.clone Method

Module: TextField

## Definition

Clones the TextField object.

Python

    clone(self) -> TextField

Returns

> TextField
> The newly created text field.

Exceptions

> DocumentException
> An error has occurred during Document Library execution.

Dart

    TextField clone()

Returns

> TextField
> The newly created text field.

Exceptions

> DocumentException
> An error has occurred during Document Library execution.

C#

    public TextField Clone()

Returns

> TextField
> The newly created text field.

Exceptions

> DocumentException
> An error has occurred during Document Library execution.

Java

    public TextField clone() throws DocumentException

Returns

> TextField
> The newly created text field.

Exceptions

> DocumentException
> An error has occurred during Document Library execution.

Swift

    public func clone() throws -> TextField

Returns

> TextField
> The newly created text field.

Exceptions

> DocumentException
> An error has occurred during Document Library execution.

C

    int id3DocumentTextField_CopyTo (
        ID3_DOCUMENT_TEXT_FIELD hTextField,
        ID3_DOCUMENT_TEXT_FIELD hTextFieldDst)

Parameters

> `hTextField` ID3_DOCUMENT_TEXT_FIELD
> in Handle to the TextField object.
> `hTextFieldDst` ID3_DOCUMENT_TEXT_FIELD
> out The newly created text field.

Returns

> `int`
> An error code.
> See id3DocumentError file for the list of possible error codes.