__init__ constructor

On this page

init

Initializes an instance of the FileName class.

def __init__(self, file_name):
    ...
Parameter Type Description
file_name str The name of the file.
Raises Description
ValueError If file_name is None.

Example

from groupdocs.viewer.options import FileName

# Create a FileName instance with a custom archive name
custom_name = FileName("Sample Files")

See Also

On this page