Enum FileFormat

Enum FileFormat

Tên không gian: Aspose.Note Tổng hợp: Aspose.Note.dll (25.4.0)

Định dạng tệp OneNote.

public enum FileFormat
    {
        Pdf,
        WordDocument,
        ExcelWorkbook,
        PowerPointPresentation,
        Image,
        Other
    }
It has been reformatted according to standard C# conventions. Here's the result:
public enum FileFormat
{
    Pdf,
    WordDocument,
    ExcelWorkbook,
    PowerPointPresentation,
    Image,
    Other
}

Fields

OneNote2007 = 1

OneNote năm 2010.

OneNote2010 = 2

OneNote năm 2010.

OneNoteOnline = 3

OneNote trực tuyến

Unknown = 0

định dạng file chưa biết.

Examples

Hiển thị cách kiểm tra nếu tải tài liệu thất bại vì định dạng OneNote 2007 không được hỗ trợ.

string dataDir = RunExamples.GetDataDir_LoadingAndSaving();
   string fileName = Path.Combine(dataDir, "OneNote2007.one");
   try
   {
      new Document(fileName);
   }
   catch (UnsupportedFileFormatException e)
   {
      if (e.FileFormat == FileFormat.OneNote2007)
      {
         Console.WriteLine("It looks like the provided file is in OneNote 2007 format that is not supported.");
      }
      else
      {
         throw;
      }
   }
 Tiếng Việt