New to Telerik UI for WPFStart a free 30-day trial

Represents index converter.

Definition

Namespace:Telerik.Windows.Documents.Converters

Assembly:Telerik.Windows.Controls.FixedDocumentViewers.dll

Syntax:

C#
public class IndexConverter : IValueConverter

Inheritance: objectIndexConverter

Implements: IValueConverter

Constructors

C#
public IndexConverter()

Methods

Modifies the source data before passing it to the target for display in the UI.

C#
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
Parameters:valueobject

The source data being passed to the target.

targetTypeType

The Type of data expected by the target dependency property.

parameterobject

An optional parameter to be used in the converter logic.

cultureCultureInfo

The culture of the conversion.

Returns:

object

The value to be passed to the target dependency property.

Modifies the target data before passing it to the source object. This method is called only in bindings.

C#
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
Parameters:valueobject

The target data being passed to the source.

targetTypeType

The Type of data expected by the source object.

parameterobject

An optional parameter to be used in the converter logic.

cultureCultureInfo

The culture of the conversion.

Returns:

object

The value to be passed to the source object.