'Declaration
Public Shared Function GetDocumentFormatFromFileName( _ ByVal FileName As String _ ) As DocumentFormat
public static DocumentFormat GetDocumentFormatFromFileName( string FileName )
public function GetDocumentFormatFromFileName( FileName: String ): DocumentFormat; static;
public static function GetDocumentFormatFromFileName( FileName : String ) : DocumentFormat;
public: static DocumentFormat GetDocumentFormatFromFileName( string* FileName )
public: static DocumentFormat GetDocumentFormatFromFileName( String^ FileName )
Parameters
- FileName
- The file name of the required document.
The method does not care about the full file path or the file itself as it only examines the file extension.
Return Value
A member of the DocumentFormat enumeration. The format of the specified document.