Class DoubleRange
Defines a custom DoubleRange data type for ChartBase library.
Inheritance
Namespace: Syncfusion.UI.Xaml.Charts
Assembly: Syncfusion.Chart.WinUI.dll
Syntax
public sealed class DoubleRange : ValueTypeConstructors
DoubleRange(Double, Double)
Initializes a new instance of the DoubleRange struct.
Declaration
public DoubleRange(double start, double end)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Double | start | The start value. | 
| System.Double | end | The end value. | 
Properties
Delta
Gets the difference between the end and start of a DoubleRange.
Declaration
public double Delta { get; }Property Value
| Type | Description | 
|---|---|
| System.Double | A double that represents the difference between the end and start of a DoubleRange. | 
Empty
Gets the Empty value
Declaration
public static DoubleRange Empty { get; }Property Value
| Type | 
|---|
| DoubleRange | 
End
Gets the end value of a DoubleRange.
Declaration
public double End { get; }Property Value
| Type | Description | 
|---|---|
| System.Double | A double that represents the end value. | 
IsEmpty
Gets a value indicating whether a DoubleRange is empty.
Declaration
public bool IsEmpty { get; }Property Value
| Type | Description | 
|---|---|
| System.Boolean | A boolean indicating whether the DoubleRange is empty. | 
Median
Gets the median value of a DoubleRange.
Declaration
public double Median { get; }Property Value
| Type | Description | 
|---|---|
| System.Double | A double that represents the median value of a DoubleRange. | 
Start
Gets the start value of a DoubleRange.
Declaration
public double Start { get; }Property Value
| Type | Description | 
|---|---|
| System.Double | A double that represents the start value. | 
Methods
Equals(Object)
Determines whether the specified object is equal to this DoubleRange.
Declaration
public override bool Equals(object obj)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Object | obj | The object to compare with this DoubleRange. | 
Returns
| Type | Description | 
|---|---|
| System.Boolean | A boolean indicating whether the specified object is equal to this DoubleRange. | 
Exclude(DoubleRange, DoubleRange, out DoubleRange, out DoubleRange)
Excludes a range from another range.
Declaration
public static bool Exclude(DoubleRange range, DoubleRange excluder, out DoubleRange leftRange, out DoubleRange rightRange)Parameters
| Type | Name | Description | 
|---|---|---|
| DoubleRange | range | The range. | 
| DoubleRange | excluder | The excluder. | 
| DoubleRange | leftRange | The left range. | 
| DoubleRange | rightRange | The right range. | 
Returns
| Type | Description | 
|---|---|
| System.Boolean | A boolean indicating whether the exclusion was successful. | 
GetHashCode()
Returns the hash code for this DoubleRange.
Declaration
public override int GetHashCode()Returns
| Type | Description | 
|---|---|
| System.Int32 | An integer representing the hash code of this DoubleRange. | 
Inside(DoubleRange)
Determines whether a given range is inside this DoubleRange.
Declaration
public bool Inside(DoubleRange range)Parameters
| Type | Name | Description | 
|---|---|---|
| DoubleRange | range | The range to check. | 
Returns
| Type | Description | 
|---|---|
| System.Boolean | A boolean indicating whether the given range is inside this DoubleRange. | 
Inside(Double)
Determines whether a given value is inside this DoubleRange.
Declaration
public bool Inside(double value)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Double | value | The value to check. | 
Returns
| Type | Description | 
|---|---|
| System.Boolean | A boolean indicating whether the value is inside this DoubleRange. | 
Intersects(DoubleRange)
Determines whether this DoubleRange intersects with another range.
Declaration
public bool Intersects(DoubleRange range)Parameters
| Type | Name | Description | 
|---|---|---|
| DoubleRange | range | The other range to check for intersection with. | 
Returns
| Type | Description | 
|---|---|
| System.Boolean | A boolean indicating whether the two ranges intersect. | 
Intersects(Double, Double)
Determines whether this DoubleRange intersects with a given start and end value.
Declaration
public bool Intersects(double start, double end)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Double | start | The start value of the range to check for intersection with. | 
| System.Double | end | The end value of the range to check for intersection with. | 
Returns
| Type | Description | 
|---|---|
| System.Boolean | A boolean indicating whether this DoubleRange intersects with the given start and end values. | 
Offset(DoubleRange, Double)
Offsets a DoubleRange by a specified value.
Declaration
public static DoubleRange Offset(DoubleRange range, double value)Parameters
| Type | Name | Description | 
|---|---|---|
| DoubleRange | range | The DoubleRange to be offset. | 
| System.Double | value | The value by which to offset the range. | 
Returns
| Type | Description | 
|---|---|
| DoubleRange | A DoubleRange that has been offset by the specified value. | 
Scale(DoubleRange, Double)
Scales a DoubleRange by a specified value.
Declaration
public static DoubleRange Scale(DoubleRange range, double value)Parameters
| Type | Name | Description | 
|---|---|---|
| DoubleRange | range | The DoubleRange to be scaled. | 
| System.Double | value | The value by which to scale the range. | 
Returns
| Type | Description | 
|---|---|
| DoubleRange | A DoubleRange that has been scaled by the specified value. | 
Union(DoubleRange, DoubleRange)
Finds the union of two DoubleRanges.
Declaration
public static DoubleRange Union(DoubleRange leftRange, DoubleRange rightRange)Parameters
| Type | Name | Description | 
|---|---|---|
| DoubleRange | leftRange | The first DoubleRange to find the union with. | 
| DoubleRange | rightRange | The second DoubleRange to find the union with. | 
Returns
| Type | Description | 
|---|---|
| DoubleRange | A DoubleRange that represents the union of the two specified ranges. | 
Union(DoubleRange, Double)
Finds the union of a DoubleRange with a specified value.
Declaration
public static DoubleRange Union(DoubleRange range, double value)Parameters
| Type | Name | Description | 
|---|---|---|
| DoubleRange | range | The DoubleRange to find the union with. | 
| System.Double | value | The value to find the union with. | 
Returns
| Type | Description | 
|---|---|
| DoubleRange | A DoubleRange that represents the union of the specified range and value. | 
Union(Double[])
Finds the union of a set of values.
Declaration
public static DoubleRange Union(params double[] values)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Double[] | values | The set of values to find the union of. | 
Returns
| Type | Description | 
|---|---|
| DoubleRange | A DoubleRange that represents the union of the specified set of values. | 
Operators
Addition(DoubleRange, DoubleRange)
Adds two DoubleRanges.
Declaration
public static DoubleRange operator +(DoubleRange leftRange, DoubleRange rightRange)Parameters
| Type | Name | Description | 
|---|---|---|
| DoubleRange | leftRange | The first DoubleRange to add. | 
| DoubleRange | rightRange | The second DoubleRange to add. | 
Returns
| Type | Description | 
|---|---|
| DoubleRange | A DoubleRange that represents the result of adding the two DoubleRanges. | 
Addition(DoubleRange, Double)
Adds a specified value to a DoubleRange.
Declaration
public static DoubleRange operator +(DoubleRange range, double value)Parameters
| Type | Name | Description | 
|---|---|---|
| DoubleRange | range | The DoubleRange to add the value to. | 
| System.Double | value | The value to add to the DoubleRange. | 
Returns
| Type | Description | 
|---|---|
| DoubleRange | A DoubleRange that represents the result of adding the specified value to the DoubleRange. | 
Equality(DoubleRange, DoubleRange)
Determines whether two DoubleRanges are equal.
Declaration
public static bool operator ==(DoubleRange leftRange, DoubleRange rightRange)Parameters
| Type | Name | Description | 
|---|---|---|
| DoubleRange | leftRange | The first DoubleRange to compare. | 
| DoubleRange | rightRange | The second DoubleRange to compare. | 
Returns
| Type | Description | 
|---|---|
| System.Boolean | A boolean indicating whether the two DoubleRanges are equal. | 
GreaterThan(DoubleRange, DoubleRange)
Determines whether a DoubleRange is greater than another DoubleRange.
Declaration
public static bool operator>(DoubleRange range, DoubleRange value)Parameters
| Type | Name | Description | 
|---|---|---|
| DoubleRange | range | The first DoubleRange to compare. | 
| DoubleRange | value | The second DoubleRange to compare. | 
Returns
| Type | Description | 
|---|---|
| System.Boolean | A boolean indicating whether the first DoubleRange is greater than the second. | 
GreaterThan(DoubleRange, Double)
Determines whether a DoubleRange is greater than a specified value.
Declaration
public static bool operator>(DoubleRange range, double value)Parameters
| Type | Name | Description | 
|---|---|---|
| DoubleRange | range | The DoubleRange to compare. | 
| System.Double | value | The value to compare. | 
Returns
| Type | Description | 
|---|---|
| System.Boolean | A boolean indicating whether the DoubleRange is greater than the specified value. | 
Inequality(DoubleRange, DoubleRange)
Determines whether two DoubleRanges are not equal.
Declaration
public static bool operator !=(DoubleRange leftRange, DoubleRange rightRange)Parameters
| Type | Name | Description | 
|---|---|---|
| DoubleRange | leftRange | The first DoubleRange to compare. | 
| DoubleRange | rightRange | The second DoubleRange to compare. | 
Returns
| Type | Description | 
|---|---|
| System.Boolean | A boolean indicating whether the two DoubleRanges are not equal. | 
LessThan(DoubleRange, DoubleRange)
Determines whether a DoubleRange is less than another DoubleRange.
Declaration
public static bool operator <(DoubleRange range, DoubleRange value)Parameters
| Type | Name | Description | 
|---|---|---|
| DoubleRange | range | The first DoubleRange to compare. | 
| DoubleRange | value | The second DoubleRange to compare. | 
Returns
| Type | Description | 
|---|---|
| System.Boolean | A boolean indicating whether the first DoubleRange is less than the second. | 
LessThan(DoubleRange, Double)
Determines whether a DoubleRange is less than a specified value.
Declaration
public static bool operator <(DoubleRange range, double value)Parameters
| Type | Name | Description | 
|---|---|---|
| DoubleRange | range | The DoubleRange to compare. | 
| System.Double | value | The value to compare. | 
Returns
| Type | Description | 
|---|---|
| System.Boolean | A boolean indicating whether the DoubleRange is less than the specified value. |