Represents a range of values.
Object
Namespace: Radzen.Blazor
Assembly: Radzen.Blazor.dll
public class ScaleRangeGets or sets the end.
public double End { get; set; }
| Type | Description |
|---|---|
| double | Gets or sets the end. |
Gets the mid.
public double Mid { get; }
| Type | Description |
|---|---|
| double | Gets the mid. |
Gets the size.
public double Size { get; }
| Type | Description |
|---|---|
| double | Gets the size. |
Gets or sets the start.
public double Start { get; set; }
| Type | Description |
|---|---|
| double | Gets or sets the start. |
Clamps the specified value within the current Start and End.
public double Clamp(double value)
| Type | Name | Description |
|---|---|---|
| double | value | The value. |
| Type | Description |
|---|---|
| double |
Creates a ScaleRange from the specified data.
public static ScaleRange From(IEnumerable<T> data, Func<T, double> selector)
| Type | Name | Description |
|---|---|---|
| IEnumerable<T> | data | The data. |
| Func<T, double> | selector | The selector. |
| Type | Description |
|---|---|
| ScaleRange |
Determines whether the current range is equal to the specified one.
public bool IsEqualTo(ScaleRange range)
| Type | Name | Description |
|---|---|---|
| ScaleRange | range | The range. |
| Type | Description |
|---|---|
| bool | true if the ranges are equal; otherwise, false. |
Merges the width.
public void MergeWidth(ScaleRange range)
| Type | Name | Description |
|---|---|---|
| ScaleRange | range | The range. |