FileFormat
ภาพรวม
FileFormat เป็นคลาสใน Aspose.3D FOSS สำหรับ TypeScript.
อ็อบเจกต์ FileFormat เปิดเผยเมตาดาต้า เช่น ส่วนขยาย, เวอร์ชันที่สนับสนุน, และว่ารูปแบบนั้นสามารถนำเข้า หรือส่งออกได้หรือไม่.
คลาสนี้ประกาศ 13 เมธอดสำหรับอ็อบเจกต์ FileFormat ในโปรแกรม TypeScript. เมธอดที่มีให้รวมถึง: canExport, canImport, constructor, contentType, createLoadOptions, createSaveOptions, extension, extensions, fileFormatType, formats, getFormatByExtension, registerFormat, และเมธอดเพิ่มเติม 1 รายการ. สมาชิกสาธารณะสามารถเข้าถึงได้โดยแอปพลิเคชัน TypeScript ใดก็ได้หลังจากติดตั้งแพคเกจ Aspose.3D FOSS สำหรับ TypeScript.
วิธีการ
| ลายเซ็น | คำอธิบาย |
|---|---|
constructor() | เรียกคอนสตรัคเตอร์บนอินสแตนซ์ FileFormat นี้. |
registerFormat(format: FileFormat) | เรียก registerFormat(format) บนอินสแตนซ์ FileFormat นี้. |
getFormatByExtension(extension: string) → `FileFormat | null` |
extension() → string | เรียก extension บนอินสแตนซ์ FileFormat นี้. |
extensions() → string[] | เรียก extensions บนอินสแตนซ์ FileFormat นี้. |
contentType() → string | เรียก contentType บนอินสแตนซ์ FileFormat นี้. |
fileFormatType() → any | เรียก fileFormatType บนอินสแตนซ์ FileFormat นี้. |
version() → string | เรียก version บบนอินสแตนซ์ FileFormat นี้. |
canExport() → boolean | เรียก canExport บนอินสแตนซ์ FileFormat นี้. |
canImport() → boolean | เรียก canImport บนอินสแตนซ์ FileFormat นี้. |
formats() → any[] | เรียก formats บนอินสแตนซ์ FileFormat นี้. |
createLoadOptions() → LoadOptions | เรียก createLoadOptions บนอินสแตนซ์ FileFormat นี้. |
createSaveOptions() → SaveOptions | เรียกใช้ createSaveOptions บนอินสแตนซ์ FileFormat นี้. |