Enum FileFormat

Enum FileFormat

名称: Aspose.Note 合計: Aspose.Note.dll (25.4.0)

OneNote ファイル形式を表示します。

public enum FileFormat

Fields

OneNote2007 = 1

OneNote 2010年。

OneNote2010 = 2

OneNote 2010年。

OneNoteOnline = 3

OneNote オンライン

Unknown = 0

未知のファイル形式

Examples

OneNote 2007 フォーマットがサポートされていないため、ドキュメントのロードが失敗しているかどうかを確認する方法を示します。

// The path to the documents directory.
                                                                                                        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;
                                                                                                        }
 日本語