WPF

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Struct DoubleRange

    Show / Hide Table of Contents

    Struct DoubleRange

    Represents the DoubleRange structure

    Inherited Members
    System.ValueType.ToString()
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetType()
    Namespace: Syncfusion.Windows.Chart
    Assembly: Syncfusion.Chart.Wpf.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 value.

    System.Double end

    The end value.

    DoubleRange(Double, Double, Boolean)

    DoubleRange method implementation for three arguments.

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

    Properties

    Delta

    Gets the Delta value

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

    Empty

    Gets the Empty value

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

    End

    Gets the End value

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

    IsEmpty

    Gets a value indicating whether IsEmpty

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

    Median

    Gets the median.

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

    The median.

    Start

    Gets the Start value

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

    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 Description
    System.Boolean

    True if empty

    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()

    Inside(DoubleRange)

    Checks whether the given range is inside the axis range

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

    The range.

    Returns
    Type Description
    System.Boolean

    True is range is inside

    Inside(Double)

    Checks whether the given value is inside the axis range

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

    The value.

    Returns
    Type Description
    System.Boolean

    True if value is inside

    Intersects(DoubleRange)

    Checks whether intersection region of two ranges is not empty.

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

    the DoubleRange

    Returns
    Type Description
    System.Boolean

    true if intersection is not empty

    Intersects(Double, Double)

    Checks whether intersection region of two ranges is not empty.

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

    The start value

    System.Double end

    The end value

    Returns
    Type Description
    System.Boolean

    true if intersection is not empty

    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

    The 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

    The 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

    The 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

    The DoubleRange

    Union(Double[])

    Create range by array of double.

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

    The values

    Returns
    Type Description
    DoubleRange

    The 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

    The Union value

    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

    The Union value

    Equality(DoubleRange, DoubleRange)

    The operator method

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

    The left DoubleRange

    DoubleRange rightRange

    The right DoubleRange

    Returns
    Type Description
    System.Boolean

    The left range

    GreaterThan(DoubleRange, DoubleRange)

    Return Bool value based upon the DoubleRange value.

    Declaration
    public static bool operator>(DoubleRange range, DoubleRange value)
    Parameters
    Type Name Description
    DoubleRange range
    DoubleRange value
    Returns
    Type Description
    System.Boolean

    GreaterThan(DoubleRange, Double)

    The operator

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

    The DoubleRange

    System.Double value

    The double value

    Returns
    Type Description
    System.Boolean

    The range value

    Inequality(DoubleRange, DoubleRange)

    The operator method

    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 inverse left range

    LessThan(DoubleRange, DoubleRange)

    Return Bool value based upon the DoubleRange value.

    Declaration
    public static bool operator <(DoubleRange range, DoubleRange value)
    Parameters
    Type Name Description
    DoubleRange range
    DoubleRange value
    Returns
    Type Description
    System.Boolean

    LessThan(DoubleRange, Double)

    The operator

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

    The DoubleRange

    System.Double value

    The double value

    Returns
    Type Description
    System.Boolean

    The range value

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