Document.FileFormat
Document.FileFormat property
获取文件格式(OneNote 2010,OneNote Online)。
public FileFormat FileFormat { get; }
示例
展示如何获取文档的文件格式。
// 文档目录的路径。
string dataDir = RunExamples.GetDataDir_LoadingAndSaving();
var document = new Aspose.Note.Document(dataDir + "Aspose.one");
switch (document.FileFormat)
{
case FileFormat.OneNote2010:
// 处理 OneNote 2010
break;
case FileFormat.OneNoteOnline:
// 处理 OneNote Online
break;
}
另请参阅
- enum FileFormat
- class Document
- namespace Aspose.Note
- assembly Aspose.Note