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

# TextField Class

Namespace: id3.Document

## Definition

Represents a text field extracted from a document.
Python

    class TextField

Dart

    class TextField implements Finalizable

C#

    public partial class TextField

Java

    public class TextField implements AutoCloseable, Serializable

Swift

    public class TextField

C

    typedef struct id3DocumentTextField *ID3_DOCUMENT_TEXT_FIELD;

## Usage

Python

    textFieldInstance = TextField()
    # ...

Explicit destruction

    # ...
    del textFieldInstance

Dart

    final textFieldInstance = sdk.TextField();
    // ...

Explicit destruction

    // ...
    textFieldInstance.dispose()

C#

    using (var textFieldInstance = new TextField())
    {
       // ...
    }

Explicit destruction

    var textFieldInstance = new TextField()
    // ...
    textFieldInstance.Dispose()

Java

    try (TextField textFieldInstance = new TextField()) {
    // ...
    }

Explicit destruction

    TextField textFieldInstance = new TextField();
    // ...
    textFieldInstance.close();

Swift

    private var textFieldInstance: TextField? = nil
    textFieldInstance = try TextField()

C

    ID3_DOCUMENT_TEXT_FIELD hTextField{};
    int err = id3DocumentTextField_Initialize(&hTextField);
    if (err == ID3_SUCCESS) {
        // ...
        id3DocumentTextField_Dispose(&hTextField);
    }

## Properties

Name | Type | Description
--- | --- | ---
bounds | Rectangle | Boundaries of the text field in the image.
confidence | float | Confidence score for the value read from the text field.
name | string | Name of the text field.
value | string | Value of the text field.

## Methods

Name | Description
--- | ---
clone | Clones the TextField object.