Table of Contents

DocumentFormatInfo.Get Method

Definition

Namespace
GleamTech.DocumentUltimate
Assembly
GleamTech.DocumentUltimate.dll

Get(string)

Gets the document format info by file name or path or extension.

public static DocumentFormatInfo Get(string file)

Parameters

file string

The file name or path or extension (with or without leading dot) of the document.

Returns

DocumentFormatInfo

a DocumentFormatInfo object if there is a match; otherwise, null.

Get(DocumentFormat)

Gets the document format info corresponding to the specified DocumentFormat enumeration value.

public static DocumentFormatInfo Get(DocumentFormat format)

Parameters

format DocumentFormat

The document format.

Returns

DocumentFormatInfo

a DocumentFormatInfo object if there is a match; otherwise, null.