FileFormatUtil
FileFormatUtil class
提供用于将文件格式枚举转换为字符串或文件扩展名并返回的实用方法。
public class FileFormatUtil
方法
| 姓名 | 描述 |
|---|---|
| static DetectFileFormat(Stream) | 检测并返回有关存储在流中的 excel 格式的信息。 |
| static DetectFileFormat(string) | 检测并返回有关存储在文件中的 Excel 格式的信息。 |
| static DetectFileFormat(Stream, string) | 检测并返回有关存储在流中的 excel 格式的信息。 |
| static DetectFileFormat(string, string) | 检测并返回有关存储在文件中的 Excel 格式的信息。 |
| static ExtensionToSaveFormat(string) | 将文件扩展名转换为 SaveFormat 值。 |
| static FileFormatToSaveFormat(FileFormatType) | 将文件格式转换为保存格式。 |
| static IsTemplateFormat(string) | 如果扩展名为 .xlt、.xltX、.xltm、.ots,则返回 true。 |
| static LoadFormatToExtension(LoadFormat) | 将加载格式枚举值转换为文件扩展名。 |
| static LoadFormatToSaveFormat(LoadFormat) | 如果可能,将 LoadFormat 值转换为 SaveFormat 值。 |
| static SaveFormatToExtension(SaveFormat) | 将保存格式枚举值转换为文件扩展名。 |
| static SaveFormatToLoadFormat(SaveFormat) | 如果可能,将 SaveFormat 值转换为 LoadFormat 值。 |
| static VerifyPassword(Stream, string) | 检测并返回有关存储在流中的 excel 格式的信息。 |
也可以看看
- 命名空间 Aspose.Cells
- 部件 Aspose.Cells