FromExtension

PresentationFormats.FromExtension method

Returns instance of PresentationFormats structure, associated to specified filename extension, or throws an exception, if extension cannot be properly parsed

public static PresentationFormats FromExtension(string extension)
Parameter Type Description
extension String Filename extension solely or filename with proper extension of any supportable Presentation format, with or without leading dot character, case-independent. Cannot be NULL or empty, should be valid.

Return Value

Instance of PresentationFormats structure on success or thrown exception on failure

See Also