SliderSnapRange

References
Represents a snap range on a slider.

Constructors

SliderSnapRange

#
public SliderSnapRange(decimal value)
value (decimal)

SliderSnapRange

#
public SliderSnapRange(decimal value0, decimal value1)
value0 (decimal)
value1 (decimal)

Properties

IsSingleton

#
public bool IsSingleton { get; }

Max

#
public decimal Max { get; }

Min

#
public decimal Min { get; }

Methods

CanMerge

#
public bool CanMerge(SliderSnapRange other)
other (SliderSnapRange)

CompareTo

#
public int CompareTo(SliderSnapRange other)
other (SliderSnapRange)

DistanceTo

#
public decimal DistanceTo(decimal value)
Compute the distance from a value to this snap range.
value (decimal)

Merge

#
public SliderSnapRange Merge(SliderSnapRange other)
other (SliderSnapRange)

SnapValue

#
public decimal SnapValue(decimal value)
Gets the snapped value of another value.
value (decimal)