## Document.FileFormat property

Hämtar filformat (OneNote 2010, OneNote Online).

```csharp
public FileFormat FileFormat { get; }
```

### Exempel

Visar hur man får filformat för ett dokument.

```csharp
// Sökvägen till dokumentkatalogen.
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;
}
```

### Se även

* enum [FileFormat](../../fileformat/)
* class [Document](../)
* namnutrymme [Aspose.Note](../../document/)
* hopsättning [Aspose.Note](../../../)


