Skip to main content
Table of Contents

TTMSFNCCloudFileConversion.GetConversionFileFormatFromString Method

Maps a file-extension string to its matching format value.

API unit family: TMSFNCCloudFileConversion Declaring type: TTMSFNCCloudFileConversion Inherited from: TTMSFNCCustomCloudFileConversion

Syntax

FMX.TMSFNCCloudFileConversion.hppPascalC++
class function GetConversionFileFormatFromString(AFormat: string): TTMSFNCCloudFileConversionFileFormat;
__classmethod TTMSFNCCloudFileConversionFileFormat __fastcall GetConversionFileFormatFromString(System::UnicodeString AFormat);

Remarks

The comparison is case-insensitive and ignores a leading dot.

Parameters

Name Description
AFormat Extension text, with or without a leading dot (for example "pdf" or ".pdf").

Returns

The matching format value, or the unknown value when the extension is not recognized.