ScaleRange Class

Represents a range of values.

Inheritance

Object

ScaleRange

Namespace: Radzen.Blazor

Assembly: Radzen.Blazor.dll

Syntax

public class ScaleRange

Constructors

ScaleRangelink

Represents a range of values.

Declaration
public ScaleRange()

Properties

Endlink

Gets or sets the end.

Declaration
public double End { get; set; }
Property Value
Type Description
doubleGets or sets the end.

Midlink

Gets the mid.

Declaration
public double Mid { get; }
Property Value
Type Description
doubleGets the mid.

Sizelink

Gets the size.

Declaration
public double Size { get; }
Property Value
Type Description
doubleGets the size.

Startlink

Gets or sets the start.

Declaration
public double Start { get; set; }
Property Value
Type Description
doubleGets or sets the start.

Methods

Clamplink

Clamps the specified value within the current Start and End.

Declaration
public double Clamp(double value)
Parameters
Type Name Description
double value The value.
Returns
Type Description
double

Fromlink

Creates a ScaleRange from the specified data.

Declaration
public static ScaleRange From(IEnumerable<T> data, Func<T, double> selector)
Parameters
Type Name Description
IEnumerable<T> data The data.
Func<T, double> selector The selector.
Returns
Type Description
ScaleRange

IsEqualTolink

Determines whether the current range is equal to the specified one.

Declaration
public bool IsEqualTo(ScaleRange range)
Parameters
Type Name Description
ScaleRange range The range.
Returns
Type Description
booltrue if the ranges are equal; otherwise, false.

MergeWidthlink

Merges the width.

Declaration
public void MergeWidth(ScaleRange range)
Parameters
Type Name Description
ScaleRange range The range.
An error has occurred. This app may no longer respond until reloaded. Reload 🗙