Enum FileFormat

Enum FileFormat

이름 공간 : Aspose.Note 모임: Aspose.Note.dll (25.4.0)

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

윈도우 2010

OneNote2010 = 2

윈도우 2010

OneNoteOnline = 3

OneNote 온라인

Unknown = 0

알려지지 않은 파일 형식

Examples

OneNote 2007 형식이 지원되지 않기 때문에 문서 로드가 실패하는지 확인하는 방법을 보여줍니다.

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;
      }
   }
 한국어