.. index:: 
  !DocumentInfo.category Property

.. _id3_document_document_info_category_class_member:

===============================================================================
DocumentInfo.category Property
===============================================================================

Module: :ref:`DocumentInfo<id3_document_document_info_class>`

Type: :ref:`DocumentCategory<id3_document_document_category_enum>`

Definition
----------

The document category.


.. tab-set::

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

    .. code:: Python

      category: DocumentCategory


    **Exceptions**

      .. line-block::

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

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

    .. code:: Dart

      DocumentCategory get category => getCategory();


    **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 DocumentCategory category
      {
          get => Getcategory();
      }


    **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 DocumentCategory getCategory() 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 category: DocumentCategory
          get {
              return try! getCategory()
          }
      }


    **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 id3DocumentInfo_GetCategory (ID3_DOCUMENT_INFO hDocumentInfo, id3DocumentCategory * eCategory)

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

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

