The following code snippet shows how to list supported file formats in the console:
usingSystem;usingSystem.Collections.Generic;usingGroupDocs.Viewer;// ...// Get list of file types.IEnumerable<FileType>supportedFileTypes=FileType.GetSupportedFileTypes();// Display list of file typesforeach(FileTypefileTypeinsupportedFileTypes){Console.WriteLine(fileType);}
ImportsSystemImportsSystem.Collections.GenericImportsGroupDocs.Viewer' ...
ModuleProgramSubMain(argsAsString())' Get list of file types.
DimsupportedFileTypesAsIEnumerable(OfFileType)=FileType.GetSupportedFileTypes()' Display list of file types
ForEachfileTypeAsFileTypeInsupportedFileTypesConsole.WriteLine(fileType)NextEndSubEndModule
Zipped File (.zip)
Rar Compressed File (.rar)
Consolidated Unix File Archive (.tar)
Bzip2 Compressed File (.bz2)
Gnu Zipped File (.gz)
Gnu Zipped File (.gzip)
Drawing Exchange Format File (.dxf)
AutoCAD Drawing Database File (.dwg)
Stereolithography File (.stl)
Industry Foundation Classes File (.ifc)
[TRUNCATED]