[]
        
(Showing Draft Content)

C1.Excel.XLStyle.FormatDotNetToXL

FormatDotNetToXL Method

FormatDotNetToXL(string, Type)

Converts a .NET-style format string into an Excel format string.

Declaration
public static string FormatDotNetToXL(string fmt, Type dataType)
Parameters
Type Name Description
string fmt

.NET-style format to convert.

Type dataType

Data type to be formatted.

Returns
Type Description
string

An Excel-style format string.

FormatDotNetToXL(string, Type, CultureInfo)

Converts a .NET-style format string into an Excel format string.

Declaration
public static string FormatDotNetToXL(string fmt, Type dataType, CultureInfo culture)
Parameters
Type Name Description
string fmt

.NET-style format to convert.

Type dataType

Data type to be formatted.

CultureInfo culture

The CultureInfo object.

Returns
Type Description
string

An Excel-style format string.

FormatDotNetToXL(string)

Converts a .NET-style format string into an Excel format string.

Declaration
public static string FormatDotNetToXL(string fmt)
Parameters
Type Name Description
string fmt

.NET-style format to convert.

Returns
Type Description
string

An Excel-style format string.

FormatDotNetToXL(string, CultureInfo)

Converts a .NET-style format string into an Excel format string.

Declaration
public static string FormatDotNetToXL(string fmt, CultureInfo culture)
Parameters
Type Name Description
string fmt

.NET-style format to convert.

CultureInfo culture

The CultureInfo object.

Returns
Type Description
string

An Excel-style format string.