FileType

WordProcessingRootPackage.FileType property

Gets the file type metadata package.

public WordProcessingTypePackage FileType { get; }

Property Value

The file type metadata package.

Examples

This example shows how to detect the exact type of a loaded document and extract some additional file format information.

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

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

See Also