Class
StringFormatConverter

A value converter which converts a value into a string using the specified string format.

Definition

Namespace:Telerik.Core

Assembly:Telerik.WinUI.Controls.dll

Syntax:

cs-api-definition
public class StringFormatConverter : IValueConverter

Inheritance: objectStringFormatConverter

Implements: IValueConverter

Constructors

StringFormatConverter()

Declaration

cs-api-definition
public StringFormatConverter()

Methods

Convert(object, Type, object, string)

Returns the formatted string version of the source object.

Declaration

cs-api-definition
public object Convert(object value, Type targetType, object parameter, string language)

Parameters

value

object

The value to convert.

targetType

Type

The target type is ignored by the StringFormatConverter.

parameter

object

An optional parameter to be used in the string.Format method. If parameter is a null reference, value will be returned unmodified.

language

string

The language is ignored by the StringFormatConverter.

Returns

object

Formatted string.

ConvertBack(object, Type, object, string)

Not implemented.

Declaration

cs-api-definition
public object ConvertBack(object value, Type targetType, object parameter, string language)

Parameters

value

object

targetType

Type

parameter

object

language

string

Returns

object