ScaleRange Class

Represents a range of values.

Inheritance

Object

ScaleRange

Namespace: Radzen.Blazor

Assembly: Radzen.Blazor.dll

Syntax

public class ScaleRange

Constructors

ScaleRangeLink to this section

Represents a range of values.

Declaration
public ScaleRange()

Properties

EndLink to this section

Gets or sets the end.

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

MidLink to this section

Gets the mid.

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

SizeLink to this section

Gets the size.

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

StartLink to this section

Gets or sets the start.

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

Methods

ClampLink to this section

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 to this section

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 to this section

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 to this section

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 🗙