FileFormat
Overview
FileFormat is a class in Aspose.3D FOSS for .NET.
File format definition
Properties
| Name | Type | Access | Description |
|---|---|---|---|
Formats | IList<FileFormat> | Read | Provides a list of all supported FileFormat instances |
Version | Version | Read | Indicates the version of the file format implementation |
CanExport | bool | Read | Indicates whether the format supports exporting (saving) |
CanImport | bool | Read | Indicates whether the format supports importing (loading) |
Extension | string | Read | Returns the primary file extension for this format |
Extensions | string[] | Read | Returns all associated file extensions for this format |
ContentType | FileContentType | Read | Returns the MIME content type of the format |
FileFormatType | FileFormatType | Read | Returns the enumeration value describing the format category |
Methods
| Signature | Description |
|---|---|
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 |