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

Namespace:  C1.Silverlight.Excel
Assembly:  C1.Silverlight.Excel.5 (in C1.Silverlight.Excel.5.dll)

Syntax

C#
public static string FormatDotNetToXL(
	string fmt,
	Type dataType,
	CultureInfo culture
)
Visual Basic
Public Shared Function FormatDotNetToXL ( _
	fmt As String, _
	dataType As Type, _
	culture As CultureInfo _
) As String

Parameters

fmt
Type: System..::..String
.NET-style format to convert.
dataType
Type: System..::..Type
Data type to be formatted.
culture
Type: System.Globalization..::..CultureInfo
The CultureInfo object.

Return Value

An Excel-style format string.

See Also