The GetFormatFileExtension Method is available as an add-on to the LEADTOOLS Document and Medical Imaging toolkits.
- format
- The document format requested.
Visual Basic (Declaration) | |
---|---|
Public Shared Function GetFormatFileExtension( _ ByVal format As DocumentFormat _ ) As String |
Visual Basic (Usage) | Copy Code |
---|---|
Dim format As DocumentFormat Dim value As String value = DocumentWriter.GetFormatFileExtension(format) |
C# | |
---|---|
public static string GetFormatFileExtension( DocumentFormat format ) |
C++/CLI | |
---|---|
public: static String^ GetFormatFileExtension( DocumentFormat format ) |
Parameters
- format
- The document format requested.
Return Value
A System.String containing the file extension for the specified format (without the ".").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.
Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7