Class
PercentageConverter

Converts double to percent and vice versa.

Definition

Namespace:Telerik.Windows.Controls.Diagrams.Ribbon

Assembly:Telerik.Windows.Controls.Diagrams.Ribbon.dll

Syntax:

cs-api-definition
public class PercentageConverter : IValueConverter

Inheritance: objectPercentageConverter

Implements: IValueConverter

Constructors

PercentageConverter()

Declaration

cs-api-definition
public PercentageConverter()

Methods

Convert(object, Type, object, CultureInfo)

Converts double to percent.

Declaration

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

Parameters

value

object

targetType

Type

parameter

object

culture

CultureInfo

Returns

object

ConvertBack(object, Type, object, CultureInfo)

Converts percent to double.

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