←Select platform

GetFormatFriendlyName Method

Summary

Gets the friendly name of the specified document format.

Syntax

C#
VB
Java
Objective-C
WinRT C#
C++
public static string GetFormatFriendlyName( 
   DocumentFormat format 
) 
Public Shared Function GetFormatFriendlyName( _ 
   ByVal format As Leadtools.Forms.Documentwriters.DocumentFormat _ 
) As String 
public static string GetFormatFriendlyName(  
   Leadtools.Forms.Documentwriters.DocumentFormat format 
) 
+ (NSString *)friendlyNameForFormat:(LTDocumentFormat)format 
public static String getFormatFriendlyName(DocumentFormat format) 
 function Leadtools.Forms.DocumentWriters.DocumentWriter.GetFormatFriendlyName(  
   format  
) 
public: 
static String^ GetFormatFriendlyName(  
   Leadtools.Forms.Documentwriters.DocumentFormat format 
)  

Parameters

format
The document format requested.

Return Value

A String containing the friendly name for the specified format.

Remarks

This method will return a friendly name used for format. For example, Adobe PDF files will return a string similar to "Adobe PDF" and Microsoft Word 2003 documents will return "Microsoft Word" and so forth. You can use this value in your application when presenting the user with a list to select a format to save the documents.

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

To get the file extension for a particular document format, use GetFormatFileExtension.

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