Class ScaleRange
Represents a range of values.
Inheritance
System.Object
ScaleRange
Namespace: Radzen.Blazor
Assembly: Radzen.Blazor.dll
Syntax
public class ScaleRange : object
Properties
End
Gets or sets the end.
Declaration
public double End { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The end. |
Mid
Gets the mid.
Declaration
public double Mid { get; }
Property Value
Type | Description |
---|---|
System.Double | The mid. |
Size
Gets the size.
Declaration
public double Size { get; }
Property Value
Type | Description |
---|---|
System.Double | The size. |
Start
Gets or sets the start.
Declaration
public double Start { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The start. |
Methods
Clamp(Double)
Declaration
public double Clamp(double value)
Parameters
Type | Name | Description |
---|---|---|
System.Double | value | The value. |
Returns
Type | Description |
---|---|
System.Double |
From<T>(IEnumerable<T>, Func<T, Double>)
Creates a ScaleRange
from the specified data.
Declaration
public static ScaleRange From<T>(IEnumerable<T> data, Func<T, double> selector)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<T> | data | The data. |
Func<T, System.Double> | selector | The selector. |
Returns
Type | Description |
---|---|
ScaleRange |
Type Parameters
Name | Description |
---|---|
T | Type of the data item. |
IsEqualTo(ScaleRange)
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 |
---|---|
System.Boolean |
|
MergeWidth(ScaleRange)
Merges the width.
Declaration
public void MergeWidth(ScaleRange range)
Parameters
Type | Name | Description |
---|---|---|
ScaleRange | range | The range. |