GraphicUtilFormatToSuffix Method |
Public API of XMLmind XSL-FO Converter for .NET
Returns the file suffix corresponding to specified MIME type.
Namespace: XmlMind.FoConverterAssembly: xfc-api (in xfc-api.dll) Version: 6.3.0
Syntax public static string FormatToSuffix(
string format
)
Public Shared Function FormatToSuffix (
format As String
) As String
public:
static String^ FormatToSuffix(
String^ format
)
Parameters
- format
- Type: SystemString
a MIME type
Return Value
Type:
Stringsuitable filename suffix or ".img" if
such suffix cannot be determined
Remarks
For example, returns: ".jpg" for "image/jpeg" and
".bar" for "application/x-bar+xml".
See Also