FileFormatUtil类

FileFormatUtil类

提供用于将文件格式枚举转换为字符串或文件扩展名并返回的实用方法。

FileFormatUtil 类型公开以下成员:

方法

方法描述
detect_file_format检测并返回有关存储在流中的 Excel 格式的信息。
detect_file_format检测并返回有关存储在流中的 Excel 格式的信息。
detect_file_format检测并返回有关文件中存储的 Excel 格式的信息。
detect_file_format检测并返回有关文件中存储的 Excel 格式的信息。
verify_password检测并返回有关存储在流中的 Excel 格式的信息。
file_format_to_save_format将文件格式转换为保存格式。
extension_to_save_format将文件扩展名转换为 SaveFormat 值。
is_template_format如果扩展名是 .xlt、.xltX、.xltm、.ots,则返回 true。
load_format_to_extension将加载格式枚举值转换为文件扩展名。
load_format_to_save_format如果可能,将 LoadFormat 值转换为 SaveFormat 值。
save_format_to_extension将保存格式枚举值转换为文件扩展名。
save_format_to_load_format如果可能,将 SaveFormat 值转换为 LoadFormat 值。

也可以看看