Class
NamedToStringConverter

A converter that converts an object to string using the DisplayName if the object is INamed or the ToString().

Definition

Namespace:Telerik.Windows.Controls.FieldList.Editing

Assembly:Telerik.Windows.Controls.PivotFieldList.dll

Syntax:

cs-api-definition
public class NamedToStringConverter : IValueConverter

Inheritance: objectNamedToStringConverter

Implements: IValueConverter

Constructors

NamedToStringConverter()

Declaration

cs-api-definition
public NamedToStringConverter()

Methods

Convert(object, Type, object, CultureInfo)

If the value implements INamed returns the DisplayName. Else returns the value ToString().

Declaration

cs-api-definition
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)

Parameters

value

object

The value.

targetType

Type

The targetType - this parameter is ignored.

parameter

object

Converter parameter - this parameter is ignored.

culture

CultureInfo

Culture - this parameter is ignored.

Returns

object

The DisplayName or the ToString representation of the value

ConvertBack(object, Type, object, CultureInfo)

method is not supported.

Declaration

cs-api-definition
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)

Parameters

value

object

targetType

Type

parameter

object

culture

CultureInfo

Returns

object