FileTypeFromFilePath Method |
Extracts file extension and maps it to file type.
Namespace: GroupDocs.ViewerAssembly: GroupDocs.Viewer (in GroupDocs.Viewer.dll) Version: 22.5
Syntaxpublic static FileType FromFilePath(
string filePath
)
Public Shared Function FromFilePath (
filePath As String
) As FileType
public:
static FileType^ FromFilePath(
String^ filePath
)
static member FromFilePath :
filePath : string -> FileType
Parameters
- filePath
- Type: SystemString
The file name or file path.
Return Value
Type:
FileTypeWhen file type is supported returns it, otherwise returns default
Unknown file type.
See Also