←Select platform

GetFormatFileExtension Method

Summary

Gets the default file extension for the specified document format.

Syntax
C#
VB
Objective-C
C++
Java
public static string GetFormatFileExtension( 
   DocumentFormat format 
) 
Public Shared Function GetFormatFileExtension( _ 
   ByVal format As DocumentFormat _ 
) As String 
+ (NSString *)fileExtensionForFormat:(LTDocumentFormat)format 
public static String getFormatFileExtension(DocumentFormat format) 
public: 
static String^ GetFormatFileExtension(  
   DocumentFormat format 
)  

Parameters

format
The document format requested.

Return Value

A String containing the file extension for the specified format (without the ".").

Remarks

This method will return the default file extension commonly used with file of types format. For example, Adobe PDF files commonly have "pdf" extensions, Microsoft Word 2003 documents commonly have "doc" extensions and so forth.

For more information on the various document formats supported by the LEADTOOLS Document Writers, refer to DocumentFormat.

To get a friendly name for a particular document format use GetFormatFriendlyName.

Example

For an example, refer to DocumentWriter.

Requirements

Target Platforms

Help Version 20.0.2020.3.31
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2020 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Document.Writer Assembly