FileType class

FileType class

Information about file, such as type, extension, etc.

The FileType type exposes the following members:

Methods

Method Description
equals File type equivalence check.
equals Equivalence check with object.
equals_file_type
equals_object
from_file_name_or_extension Return FileType based on file name or extension.
get_hash_code Get hash code.
get_supported_file_types Get supported file types enumeration.
to_string Returns a string that represents the file type.

Properties

Property Description
extension The file extension.
file_format The file format.

Example

from groupdocs.annotation import FileType

# Retrieve a list of all supported file types
supported = FileType.get_supported_file_types()
print(supported)

See Also