FileType
Leave feedback
On this page
Gets the file type metadata package.
public WordProcessingTypePackage FileType { get; }
The file type metadata package.
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);
}
- class WordProcessingTypePackage
- class WordProcessingRootPackage
- namespace GroupDocs.Metadata.Formats.Document
- assembly GroupDocs.Metadata
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.