menu

WinForms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Struct DoubleRange - WindowsForms API Reference | Syncfusion

    Show / Hide Table of Contents

    Struct DoubleRange

    Closed range.

    Inherited Members
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetType()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.ValueType.ToString()
    Namespace: Syncfusion.Windows.Forms.Chart
    Assembly: Syncfusion.Chart.Base.dll
    Syntax
    public struct DoubleRange

    Constructors

    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.

    System.Double end

    The end.

    Properties

    Delta

    Gets the delta.

    Declaration
    public double Delta { get; }
    Property Value
    Type Description
    System.Double

    The delta.

    Empty

    Gets the empty.

    Declaration
    public static DoubleRange Empty { get; }
    Property Value
    Type Description
    DoubleRange

    The empty.

    End

    Gets the end.

    Declaration
    public double End { get; }
    Property Value
    Type Description
    System.Double

    The end.

    IsEmpty

    Gets a value indicating whether this instance is empty.

    Declaration
    public bool IsEmpty { get; }
    Property Value
    Type Description
    System.Boolean

    true if this instance is empty; otherwise, false.

    Median

    Gets the median.

    Declaration
    public double Median { get; }
    Property Value
    Type Description
    System.Double

    The median.

    Start

    Gets the start.

    Declaration
    public double Start { get; }
    Property Value
    Type Description
    System.Double

    The start.

    Methods

    Equals(Object)

    Indicates whether this instance and a specified object are equal.

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    System.Object obj

    Another object to compare to.

    Returns
    Type Description
    System.Boolean

    true if obj and this instance are the same type and represent the same value; otherwise, false.

    Overrides
    System.ValueType.Equals(System.Object)

    Exclude(DoubleRange, DoubleRange, out DoubleRange, out DoubleRange)

    Excludes the specified 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
    System.Boolean

    Extrapolate(Double)

    Extrapolates the specified value.

    Declaration
    public double Extrapolate(double value)
    Parameters
    Type Name Description
    System.Double value

    The value.

    Returns
    Type Description
    System.Double

    Returns Double.

    FromMedian(Double, Double)

    Create the DoubleRange from the median.

    Declaration
    public static DoubleRange FromMedian(double median, double size)
    Parameters
    Type Name Description
    System.Double median

    The median.

    System.Double size

    The size.

    Returns
    Type Description
    DoubleRange

    Returns DoubleRange.

    GetHashCode()

    Returns the hash code for this instance.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    System.Int32

    A 32-bit signed integer that is the hash code for this instance.

    Overrides
    System.ValueType.GetHashCode()

    Inflate(DoubleRange, Double)

    Inflates the specified range.

    Declaration
    public static DoubleRange Inflate(DoubleRange range, double value)
    Parameters
    Type Name Description
    DoubleRange range

    The range.

    System.Double value

    The value.

    Returns
    Type Description
    DoubleRange

    Returns DoubleRange.

    Inside(DoubleRange)

    Insides the specified range.

    Declaration
    public bool Inside(DoubleRange range)
    Parameters
    Type Name Description
    DoubleRange range

    The range.

    Returns
    Type Description
    System.Boolean

    True if the ChartRanges is not Empty otherwise False.

    Inside(Double)

    Check the value whether it lies inside the end value or not.

    Declaration
    public bool Inside(double value)
    Parameters
    Type Name Description
    System.Double value

    The value.

    Returns
    Type Description
    System.Boolean

    True if the ChartRanges is not Empty otherwise False.

    Inside(Double, Boolean)

    Insides the specified value.

    Declaration
    public bool Inside(double value, bool equal)
    Parameters
    Type Name Description
    System.Double value

    The value.

    System.Boolean equal

    if set to true value can be equal with range.

    Returns
    Type Description
    System.Boolean

    True if the ChartRanges is not Empty otherwise False.

    Interpolate(Double)

    Interpolates the specified value.

    Declaration
    public double Interpolate(double interpolator)
    Parameters
    Type Name Description
    System.Double interpolator

    The interpolator.

    Returns
    Type Description
    System.Double

    Returns Double.

    Intersect(DoubleRange, DoubleRange)

    Intersects the specified left range.

    Declaration
    public static DoubleRange Intersect(DoubleRange leftRange, DoubleRange rightRange)
    Parameters
    Type Name Description
    DoubleRange leftRange

    The left range.

    DoubleRange rightRange

    The right range.

    Returns
    Type Description
    DoubleRange

    Returns DoubleRange.

    IsIntersects(DoubleRange)

    Checks whether intersection region of two ranges is not empty.

    Declaration
    public bool IsIntersects(DoubleRange range)
    Parameters
    Type Name Description
    DoubleRange range
    Returns
    Type Description
    System.Boolean

    true if intersection is not empty

    IsIntersects(Double, Double)

    Checks whether intersection region of two ranges is not empty.

    Declaration
    public bool IsIntersects(double start, double end)
    Parameters
    Type Name Description
    System.Double start
    System.Double end
    Returns
    Type Description
    System.Boolean

    true if intersection is not empty

    Multiply(DoubleRange, Double)

    Multiplies the specified range by value.

    Declaration
    public static DoubleRange Multiply(DoubleRange range, double value)
    Parameters
    Type Name Description
    DoubleRange range

    The range.

    System.Double value

    The value.

    Returns
    Type Description
    DoubleRange

    Returns DoubleRange.

    Offset(DoubleRange, Double)

    Offsets the specified range by value.

    Declaration
    public static DoubleRange Offset(DoubleRange range, double value)
    Parameters
    Type Name Description
    DoubleRange range

    The range.

    System.Double value

    The value.

    Returns
    Type Description
    DoubleRange

    Returns DoubleRange.

    Scale(DoubleRange, Double)

    Scales the specified range by value.

    Declaration
    public static DoubleRange Scale(DoubleRange range, double value)
    Parameters
    Type Name Description
    DoubleRange range

    The range.

    System.Double value

    The value.

    Returns
    Type Description
    DoubleRange

    Returns DoubleRange.

    Union(DoubleRange, DoubleRange)

    Unions the specified left range with right range.

    Declaration
    public static DoubleRange Union(DoubleRange leftRange, DoubleRange rightRange)
    Parameters
    Type Name Description
    DoubleRange leftRange

    The left range.

    DoubleRange rightRange

    The right range.

    Returns
    Type Description
    DoubleRange

    Returns DoubleRange.

    Union(DoubleRange, Double)

    Unions the specified range with value.

    Declaration
    public static DoubleRange Union(DoubleRange range, double value)
    Parameters
    Type Name Description
    DoubleRange range

    The range.

    System.Double value

    The value.

    Returns
    Type Description
    DoubleRange

    Returns DoubleRange.

    Union(Double[])

    Create range by array of double.

    Declaration
    public static DoubleRange Union(double[] values)
    Parameters
    Type Name Description
    System.Double[] values
    Returns
    Type Description
    DoubleRange

    Returns DoubleRange.

    Operators

    Addition(DoubleRange, DoubleRange)

    Union operator

    Declaration
    public static DoubleRange operator +(DoubleRange leftRange, DoubleRange rightRange)
    Parameters
    Type Name Description
    DoubleRange leftRange

    First double range

    DoubleRange rightRange

    Second double range

    Returns
    Type Description
    DoubleRange

    Returns DoubleRange.

    Addition(DoubleRange, Double)

    Union operator

    Declaration
    public static DoubleRange operator +(DoubleRange range, double value)
    Parameters
    Type Name Description
    DoubleRange range

    First double range

    System.Double value

    Second double range

    Returns
    Type Description
    DoubleRange

    Returns DoubleRange.

    Equality(DoubleRange, DoubleRange)

    Implements the operator ==.

    Declaration
    public static bool operator ==(DoubleRange leftRange, DoubleRange rightRange)
    Parameters
    Type Name Description
    DoubleRange leftRange

    The left range.

    DoubleRange rightRange

    The right range.

    Returns
    Type Description
    System.Boolean

    The result of the operator.

    GreaterThan(DoubleRange, Double)

    Implements the operator >.

    Declaration
    public static bool operator>(DoubleRange range, double value)
    Parameters
    Type Name Description
    DoubleRange range

    The range.

    System.Double value

    The value.

    Returns
    Type Description
    System.Boolean

    The result of the operator.

    GreaterThanOrEqual(DoubleRange, Double)

    Implements the operator >=.

    Declaration
    public static bool operator >=(DoubleRange range, double value)
    Parameters
    Type Name Description
    DoubleRange range

    The range.

    System.Double value

    The value.

    Returns
    Type Description
    System.Boolean

    The result of the operator.

    Inequality(DoubleRange, DoubleRange)

    Implements the operator !=.

    Declaration
    public static bool operator !=(DoubleRange leftRange, DoubleRange rightRange)
    Parameters
    Type Name Description
    DoubleRange leftRange

    The left range.

    DoubleRange rightRange

    The right range.

    Returns
    Type Description
    System.Boolean

    The result of the operator.

    LessThan(DoubleRange, Double)

    Implements the operator <.

    Declaration
    public static bool operator <(DoubleRange range, double value)
    Parameters
    Type Name Description
    DoubleRange range

    The range.

    System.Double value

    The value.

    Returns
    Type Description
    System.Boolean

    The result of the operator.

    LessThanOrEqual(DoubleRange, Double)

    Implements the operator <=.

    Declaration
    public static bool operator <=(DoubleRange range, double value)
    Parameters
    Type Name Description
    DoubleRange range

    The range.

    System.Double value

    The value.

    Returns
    Type Description
    System.Boolean

    The result of the operator.

    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved