←Select platform

GetFormatFileExtension Method

Summary

Gets the default file extension for the specified document format.

Syntax

C#
VB
Java
Objective-C
WinRT C#
C++
public static string GetFormatFileExtension( 
   DocumentFormat format 
) 
Public Shared Function GetFormatFileExtension( _ 
   ByVal format As Leadtools.Forms.Documentwriters.DocumentFormat _ 
) As String 
public static string GetFormatFileExtension(  
   Leadtools.Forms.Documentwriters.DocumentFormat format 
) 
+ (NSString *)fileExtensionForFormat:(LTDocumentFormat)format 
public static String getFormatFileExtension(DocumentFormat format) 
 function Leadtools.Forms.DocumentWriters.DocumentWriter.GetFormatFileExtension(  
   format  
) 
public: 
static String^ GetFormatFileExtension(  
   Leadtools.Forms.Documentwriters.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 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Forms.DocumentWriters Assembly