FileFormat

Overview

FileFormat is a class in Aspose.3D FOSS for .NET.

File format definition

Properties

NameTypeAccessDescription
FormatsIList<FileFormat>ReadProvides a list of all supported FileFormat instances
VersionVersionReadIndicates the version of the file format implementation
CanExportboolReadIndicates whether the format supports exporting (saving)
CanImportboolReadIndicates whether the format supports importing (loading)
ExtensionstringReadReturns the primary file extension for this format
Extensionsstring[]ReadReturns all associated file extensions for this format
ContentTypeFileContentTypeReadReturns the MIME content type of the format
FileFormatTypeFileFormatTypeReadReturns the enumeration value describing the format category

Methods

SignatureDescription
CanDetect(stream: Stream, fileName: string?)True if this format can handle the file
GetFormatByExtension(extensionName: string)Gets the preferred file format from the file extension name The extension name should starts with a dot(’.’).
Detect(fileName: string)Detects file format from file name, file must be readable so Aspose.3D can detect file format through file header.
CreateLoadOptions()Not implemented in the FOSS edition — throws at runtime. Creates a default load‑options object for this format
CreateSaveOptions()Not implemented in the FOSS edition — throws at runtime. Creates a default save‑options object for this format
ToString()Formats to string

See Also