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
The following image shows a sample console output:
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.