FileTypeFromExtension Method
Maps file extension to file type.

Namespace: GroupDocs.Viewer
Assembly: GroupDocs.Viewer (in GroupDocs.Viewer.dll) Version: 20.6
Syntax
public static FileType FromExtension(
	string extension
)

Parameters

extension
Type: SystemString
File extension with or without the period ".".

Return Value

Type: FileType
When file type is supported returns it, otherwise returns default Unknown file type.
See Also