Excel for WPF | ComponentOne
C1.WPF.Excel Namespace / XLStyle Class / FormatDotNetToXL Method / FormatDotNetToXL(String,Type,CultureInfo) Method
.NET-style format to convert.
Data type to be formatted.
The System.Globalization.CultureInfo object.

In This Topic
    FormatDotNetToXL(String,Type,CultureInfo) Method
    In This Topic
    Converts a .NET-style format string into an Excel format string.
    Syntax
    'Declaration
     
    
    Public Overloads Shared Function FormatDotNetToXL( _
       ByVal fmt As String, _
       ByVal dataType As Type, _
       ByVal culture As CultureInfo _
    ) As String
    public static string FormatDotNetToXL( 
       string fmt,
       Type dataType,
       CultureInfo culture
    )

    Parameters

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

    Return Value

    An Excel-style format string.
    See Also