.. index:: 
  !DetectedDocument.bounds Property

.. _id3_document_detected_document_bounds_class_member:

===============================================================================
DetectedDocument.bounds Property
===============================================================================

Module: :ref:`DetectedDocument<id3_document_detected_document_class>`

Type: :ref:`PointList<id3_document_point_list_class>`

Definition
----------

Boundaries of the document detected, in the following order: top-left, top-right, bottom-right, bottom-left.


.. tab-set::

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

    .. code:: Python

      bounds: PointList


    **Exceptions**

      .. line-block::

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

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

    .. code:: Dart

      PointList get bounds => getBounds();
      set bounds(PointList value) => setBounds(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 PointList bounds
      {
          get => Getbounds();
          set => Setbounds(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 PointList getBounds() throws DocumentException
      public void setBounds(PointList bounds) 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 bounds: PointList
          get {
              return try! getBounds()
          }
      }


    **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 id3DetectedDocument_GetBounds (ID3_DETECTED_DOCUMENT hDetectedDocument, ID3_DOCUMENT_POINT_LIST hBounds)
      int id3DetectedDocument_SetBounds (ID3_DETECTED_DOCUMENT hDetectedDocument, ID3_DOCUMENT_POINT_LIST hBounds)

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

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

