DiagramRootPackageFileType Property
Gets the file type metadata package.

Namespace: GroupDocs.Metadata.Formats.Document
Assembly: GroupDocs.Metadata (in GroupDocs.Metadata.dll) Version: 21.8
Syntax
public DiagramTypePackage FileType { get; }

Property Value

Type: DiagramTypePackage
The file type metadata package.
Examples
This code sample shows how to detect the exact type of a loaded diagram and extract some additional file format information.
C#
using (Metadata metadata = new Metadata(Constants.InputVdx))
{
    var root = metadata.GetRootPackage<DiagramRootPackage>();

    Console.WriteLine(root.FileType.FileFormat);
    Console.WriteLine(root.FileType.DiagramFormat);
    Console.WriteLine(root.FileType.MimeType);
    Console.WriteLine(root.FileType.Extension);
}
See Also