CircularRangeMapper
A RangeMapper that wraps indices around, enabling continuous looping through the item collection.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class CircularRangeMapper : RangeMapper
Inheritance: objectRangeMapperCircularRangeMapper
Inherited Members
Constructors
public CircularRangeMapper()
Methods
Chooses the occurrence of an item index, separated by multiples of the item count, nearest to the current index.
Determines whether an item index belongs to a range that may wrap across the collection boundary.
Wraps an index into the item collection using modulo arithmetic.
public override int MapFromRangeIndex(int index)
The index, which may be negative or exceed the item count.
Returns:An index in the collection, or zero when ItemsCount is less than one.
Overrides:
Adjusts an index by at most one collection length so that it falls within a wrapped range.
Reduces the range's starting index by the item count and limits its span to at most one full collection; negative starts remain negative after the remainder operation.