FileFormatUtil.ExtensionToSaveFormat

FileFormatUtil.ExtensionToSaveFormat method

Converts a file name extension into a SaveFormat value.

public static SaveFormat ExtensionToSaveFormat(string extension)
ParameterTypeDescription
extensionStringThe file extension. Can be with or without a leading dot. Case-insensitive.

Remarks

If the extension cannot be recognized, returns Unknown.

See Also