FileTypeFromFilePath Method
Extracts file extension and maps it to file type.

Namespace: GroupDocs.Viewer
Assembly: GroupDocs.Viewer (in GroupDocs.Viewer.dll) Version: 21.10
Syntax
public static FileType FromFilePath(
	string filePath
)

Parameters

filePath
Type: SystemString
The file name or file path.

Return Value

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