Version

Convert Method (FormattableToStringConverter)

Converts a given System.IFormattable value to a string using the specified parameter as the format string
Syntax
'Declaration
 
Public Function Convert( _
   ByVal value As Object, _
   ByVal targetType As Type, _
   ByVal parameter As Object, _
   ByVal culture As CultureInfo _
) As Object
public object Convert( 
   object value,
   Type targetType,
   object parameter,
   CultureInfo culture
)

Parameters

value
An object that implements System.IFormattable
targetType
The type to which the converter must be convert the value. This parameter is not used. A String value is always returned
parameter
The format string passed to the System.IFormattable.ToString(System.String,System.IFormatProvider) method.
culture
The culture to use as the IFormatProvider when calling the System.IFormattable.ToString(System.String,System.IFormatProvider).

Return Value

System.Windows.DependencyProperty.UnsetValue if the parameters do not match the required information. Otherwise a string representation of the value using its System.IFormattable.ToString(System.String,System.IFormatProvider) method is returned.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also