Edit

Share via


StringFormatConverter.Convert(Object, Type, Object, String) Method

Definition

Return the formatted string version of the source object.

public object Convert (object value, Type targetType, object parameter, string language);
abstract member Convert : obj * Type * obj * string -> obj
override this.Convert : obj * Type * obj * string -> obj
Public Function Convert (value As Object, targetType As Type, parameter As Object, language As String) As Object

Parameters

value
Object

Object to transform to string.

targetType
Type

The type of the target property, as a type reference

parameter
Object

An optional parameter to be used in the string.Format method.

language
String

The language of the conversion (not used).

Returns

Formatted string.

Implements

Microsoft.UI.Xaml.Data.IValueConverter.Convert(System.Object,System.Type,System.Object,System.String)

Applies to