Document.FileFormat

Document.FileFormat property

Gets file format (OneNote 2010, OneNote Online).

public FileFormat FileFormat { get; }

Examples

Shows how to get file format of a document.

// The path to the documents directory.
string dataDir = RunExamples.GetDataDir_LoadingAndSaving();

var document = new Aspose.Note.Document(dataDir + "Aspose.one");
switch (document.FileFormat)
{
    case FileFormat.OneNote2010:
        // Process OneNote 2010
        break;
    case FileFormat.OneNoteOnline:
        // Process OneNote Online
        break;
}

See Also