Aspose::Cells::FileFormatUtil::ExtensionToSaveFormat method

FileFormatUtil::ExtensionToSaveFormat(const U16String&) method

Converts a file name extension into a SaveFormat value.

static SaveFormat Aspose::Cells::FileFormatUtil::ExtensionToSaveFormat(const U16String &extension)
ParameterTypeDescription
extensionconst U16String&The file extension. Can be with or without a leading dot. Case-insensitive.

ReturnValue

Remarks

If the extension cannot be recognized, returns SaveFormat.Unknown.

See Also

FileFormatUtil::ExtensionToSaveFormat(const char16_t*) method

Converts a file name extension into a SaveFormat value.

static SaveFormat Aspose::Cells::FileFormatUtil::ExtensionToSaveFormat(const char16_t *extension)
ParameterTypeDescription
extensionconst char16_t*The file extension. Can be with or without a leading dot. Case-insensitive.

ReturnValue

Remarks

If the extension cannot be recognized, returns SaveFormat.Unknown.

See Also