.. index:: 
  !DocumentDetector.model Property

.. _id3_document_document_detector_model_class_member:

===============================================================================
DocumentDetector.model Property
===============================================================================

Module: :ref:`DocumentDetector<id3_document_document_detector_class>`

Type: :ref:`DocumentModel<id3_document_document_model_enum>`

Definition
----------

Model to be used for document detection.

.. hint:: Default value is DocumentDetector2A.


.. tab-set::

  .. tab-item:: Python
    :sync: Python

    .. code:: Python

      model: DocumentModel


    **Exceptions**

      .. line-block::

        :ref:`DocumentException<id3_document_document_exception>`
        An error has occurred during Document Library execution.

  .. tab-item:: Dart
    :sync: Dart

    .. code:: Dart

      DocumentModel get model => getModel();
      set model(DocumentModel value) => setModel(value);


    **Exceptions**

      .. line-block::

        :ref:`DocumentException<id3_document_document_exception>`
        An error has occurred during Document Library execution.

  .. tab-item:: C#
    :sync: C#

    .. code:: C#

      public DocumentModel model
      {
          get => Getmodel();
          set => Setmodel(ref value);
      }


    **Exceptions**

      .. line-block::

        :ref:`DocumentException<id3_document_document_exception>`
        An error has occurred during Document Library execution.

  .. tab-item:: Java
    :sync: Java

    .. code:: Java

      public DocumentModel getModel() throws DocumentException
      public void setModel(DocumentModel model) throws DocumentException


    **Exceptions**

      .. line-block::

        :ref:`DocumentException<id3_document_document_exception>`
        An error has occurred during Document Library execution.

  .. tab-item:: Swift
    :sync: Swift

    .. code:: Swift

      public var model: DocumentModel
          get {
              return try! getModel()
          }
      }


    **Exceptions**

      .. line-block::

        :ref:`DocumentException<id3_document_document_exception>`
        An error has occurred during Document Library execution.

  .. tab-item:: C
    :sync: C

    .. code:: C

      int id3DocumentDetector_GetModel (ID3_DOCUMENT_DETECTOR hDocumentDetector, id3DocumentModel * eModel)
      int id3DocumentDetector_SetModel (ID3_DOCUMENT_DETECTOR hDocumentDetector, id3DocumentModel eModel)

    **Returns**
   
      .. line-block::

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

