FileType

PresentationRootPackage.FileType property

Gets the file type metadata package.

public PresentationTypePackage FileType { get; }

Property Value

The file type metadata package.

Examples

This example demonstrates how to detect the exact type of a presentation and extract some additional file format information.

using (Metadata metadata = new Metadata(Constants.InputPptx))
{
    var root = metadata.GetRootPackage<PresentationRootPackage>();

    Console.WriteLine(root.FileType.FileFormat);
    Console.WriteLine(root.FileType.PresentationFormat);
    Console.WriteLine(root.FileType.MimeType);
    Console.WriteLine(root.FileType.Extension);
}

See Also