TdxOfficeImage.GetExtension(TdxOfficeImageFormat) Method
Returns the file name extension corresponding to the specified Office image format.
Declaration
class function GetExtension(AImageFormat: TdxOfficeImageFormat): string; static;
Parameters
Name | Type |
---|---|
AImageFormat | TdxOfficeImageFormat |
Returns
Type |
---|
string |
Remarks
The Rich Edit control’s OpenXML document export routines automatically call the GetExtension and GetContentType functions to save images into a DOCX/DOTX file.
You can call this class function to obtain the file name extension identifying the image file format corresponding to the Office image format passed as the AImageFormat parameter. The GetExtension function can return an empty string for certain formats, since not all of them have the corresponding file formats. Refer to the TdxOfficeImageFormat type description for detailed information on the function results corresponding to all possible AImageFormat parameter values.
See Also