Class SparkDataPoint
Base class for all DataPoints. This class contains only properties related to the data.
Inherited Members
Namespace: Telerik.Windows.Controls.Sparklines
Assembly: Telerik.Windows.Controls.DataVisualization.dll
Syntax
public abstract class SparkDataPoint : DataItemBase, IDataItemContainer, INotifyPropertyChanged, IComparable, IComparable<double>, IComparable<long>, IComparable<SparkDataPoint>
Constructors
SparkDataPoint()
Declaration
protected SparkDataPoint()
Properties
XValue
Gets or sets the X value.
Declaration
public double? XValue { get; }
Property Value
System.Nullable<System.Double>
The X value. |
XValuePath
Gets the X value path.
Declaration
public string XValuePath { get; set; }
Property Value
System.String
The X value path. |
YValue
Gets or sets the Y value.
Declaration
public double? YValue { get; }
Property Value
System.Nullable<System.Double>
The Y value. |
YValuePath
Gets the Y value path.
Declaration
public string YValuePath { get; set; }
Property Value
System.String
The Y value path. |
Methods
CompareTo(Double)
Compares the current instance with another System.DateTime and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.
Declaration
public int CompareTo(double other)
Parameters
System.Double
other
A DateTime object to compare with this instance. |
Returns
System.Int32
|
Implements
CompareTo(Int64)
Compares the current instance with another System.DateTime and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.
Declaration
public int CompareTo(long other)
Parameters
System.Int64
other
A DateTime object to compare with this instance. |
Returns
System.Int32
|
Implements
CompareTo(Object)
Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.
Declaration
public int CompareTo(object obj)
Parameters
System.Object
obj
An object to compare with this instance. |
Returns
System.Int32
|
Implements
CompareTo(SparkDataPoint)
Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.
Declaration
public int CompareTo(SparkDataPoint other)
Parameters
SparkDataPoint
other
A PeriodSpan object to compare with this instance. |
Returns
System.Int32
|
Implements
Equals(Object)
Determines whether the specified System.Object is equal to this instance.
Declaration
public override bool Equals(object obj)
Parameters
System.Object
obj
The System.Object to compare with this instance. |
Returns
System.Boolean
|
Overrides
GetHashCode()
Returns a hash code for this instance.
Declaration
public override int GetHashCode()
Returns
System.Int32
A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. |
Overrides
OnDataRangeChanged()
Called when data range changed.
Declaration
protected virtual void OnDataRangeChanged()
OnDataValueChanged()
Called when data value changed.
Declaration
protected virtual void OnDataValueChanged()
OnPropertyChanged(Object, PropertyChangedEventArgs)
Called when a property changes.
Declaration
protected override void OnPropertyChanged(object sender, PropertyChangedEventArgs args)
Parameters
System.Object
sender
The sender. |
System.ComponentModel.PropertyChangedEventArgs
args
The System.ComponentModel.PropertyChangedEventArgs instance containing the event data. |
Overrides
Operators
Equality(SparkDataPoint, SparkDataPoint)
Implements the operator ==.
Declaration
public static bool operator ==(SparkDataPoint sparkDataPoint1, SparkDataPoint sparkDataPoint2)
Parameters
SparkDataPoint
sparkDataPoint1
The spark data point1. |
SparkDataPoint
sparkDataPoint2
The spark data point2. |
Returns
System.Boolean
The result of the operator. |
GreaterThan(SparkDataPoint, SparkDataPoint)
Implements the operator >.
Declaration
public static bool operator>(SparkDataPoint sparkDataPoint1, SparkDataPoint sparkDataPoint2)
Parameters
SparkDataPoint
sparkDataPoint1
The spark data point1. |
SparkDataPoint
sparkDataPoint2
The spark data point2. |
Returns
System.Boolean
The result of the operator. |
Inequality(SparkDataPoint, SparkDataPoint)
Implements the operator !=.
Declaration
public static bool operator !=(SparkDataPoint sparkDataPoint1, SparkDataPoint sparkDataPoint2)
Parameters
SparkDataPoint
sparkDataPoint1
The spark data point1. |
SparkDataPoint
sparkDataPoint2
The spark data point2. |
Returns
System.Boolean
The result of the operator. |
LessThan(SparkDataPoint, SparkDataPoint)
Implements the operator <.
Declaration
public static bool operator <(SparkDataPoint sparkDataPoint1, SparkDataPoint sparkDataPoint2)
Parameters
SparkDataPoint
sparkDataPoint1
The spark data point1. |
SparkDataPoint
sparkDataPoint2
The spark data point2. |
Returns
System.Boolean
The result of the operator. |