__init__ constructor

init

Initializes a new instance of the LoadOptions class.

def __init__(self):
    ...

Example

from groupdocs.metadata.options import LoadOptions
from groupdocs.metadata.common import FileFormat

# Default constructor
options = LoadOptions()

# Specify a file format to skip automatic detection
options_with_format = LoadOptions(FileFormat.SPREADSHEET)

init

Initializes a new instance of the LoadOptions class.

def __init__(self, file_format):
    ...
Parameter Type Description
file_format FileFormat The exact type of the file.

Example

from groupdocs.metadata.options import LoadOptions
from groupdocs.metadata.common import FileFormat

# Load a spreadsheet file with explicit format specification
load_options = LoadOptions(FileFormat.SPREADSHEET)

See Also