PropertyGrid for WPF | ComponentOne
C1.WPF.PropertyGrid Namespace / CollectionEditorValueConverter Class / GetFormattedString Method
The value to format.
The format specifier.

In This Topic
    GetFormattedString Method
    In This Topic
    Formats the value parameter using the specified format. Uses value type name as fallback value.
    Syntax
    'Declaration
     
    
    Protected Overrides Function GetFormattedString( _
       ByVal value As Object, _
       ByVal format As String _
    ) As String
    protected override string GetFormattedString( 
       object value,
       string format
    )

    Parameters

    value
    The value to format.
    format
    The format specifier.

    Return Value

    Formatted string if value is System.IFormattable, or value.ToString() otherwise
    See Also