Table of Contents

Class ScaleRange

Namespace
Radzen.Blazor
Assembly
Radzen.Blazor.dll

Represents a range of values.

public class ScaleRange
Inheritance
ScaleRange
Inherited Members

Constructors

ScaleRange()

public ScaleRange()

Properties

End

Gets or sets the end.

public double End { get; set; }

Property Value

double

The end.

Mid

Gets the mid.

public double Mid { get; }

Property Value

double

The mid.

Size

Gets the size.

public double Size { get; }

Property Value

double

The size.

Start

Gets or sets the start.

public double Start { get; set; }

Property Value

double

The start.

Methods

Clamp(double)

Clamps the specified value within the current Start and End.

public double Clamp(double value)

Parameters

value double

The value.

Returns

double

From<T>(IEnumerable<T>, Func<T, double>)

Creates a ScaleRange from the specified data.

public static ScaleRange From<T>(IEnumerable<T> data, Func<T, double> selector)

Parameters

data IEnumerable<T>

The data.

selector Func<T, double>

The selector.

Returns

ScaleRange

Type Parameters

T

Type of the data item.

IsEqualTo(ScaleRange)

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

public bool IsEqualTo(ScaleRange range)

Parameters

range ScaleRange

The range.

Returns

bool

true if the ranges are equal; otherwise, false.

MergeWidth(ScaleRange)

Merges the width.

public void MergeWidth(ScaleRange range)

Parameters

range ScaleRange

The range.