New to Telerik UI for WinForms? Start a free 30-day trial

Maps values between pairs of source and target ranges, used to translate carousel path position into item coordinates.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Syntax:

C#
public class ValueMapper

Inheritance: objectValueMapper

Constructors

C#
public ValueMapper()

Properties

Gets the source/target range pair registered at the specified index.

C#
public ValueMapper.RangePair this[int index] { get; }
Parameters:indexint

Methods

Registers a mapping between a source range and its corresponding target range.

C#
public void Add(ValueMapper.MapperRange source, ValueMapper.MapperRange target)
Parameters:sourceValueMapper.MapperRangetargetValueMapper.MapperRange

Finds the index of the range pair whose source range contains the specified value, or -1 if none matches.

C#
public int GetIndexFromSource(double value)
Parameters:valuedoubleReturns:

int

Finds the index of the range pair whose target range contains the specified value, or -1 if none matches.

C#
public int GetIndexFromTarget(double value)
Parameters:valuedoubleReturns:

int

Gets the source range that corresponds to the target range containing the specified value.

C#
public ValueMapper.MapperRange GetSource(double value)
Parameters:valuedoubleReturns:

ValueMapper.MapperRange

Gets the target range that corresponds to the source range containing the specified value.

C#
public ValueMapper.MapperRange GetTarget(double value)
Parameters:valuedoubleReturns:

ValueMapper.MapperRange

Converts a value expressed in target-range coordinates into the corresponding value in source-range coordinates.

C#
public double MapInSource(double value)
Parameters:valuedoubleReturns:

double

Converts a value expressed in source-range coordinates into the corresponding value in target-range coordinates.

C#
public double MapInTarget(double value)
Parameters:valuedoubleReturns:

double

Converts a value expressed in target-range coordinates into a normalized 0-1 position within its matching target range.

C#
public double MapTargetToUnit(double value)
Parameters:valuedoubleReturns:

double