New to Telerik UI for WPFStart a free 30-day trial

Base class for all DataPoints. This class contains only properties related to the data.

Definition

Namespace:Telerik.Windows.Controls.Sparklines

Assembly:Telerik.Windows.Controls.DataVisualization.dll

Syntax:

C#
public abstract class SparkDataPoint : DataItemBase, INotifyPropertyChanged, IComparable, IComparable<double>, IComparable<long>, IComparable<SparkDataPoint>

Inheritance: objectDataItemBaseSparkDataPoint

Derived Classes: VisualDataPoint

Implements: IComparableIComparable<SparkDataPoint>IComparable<double>IComparable<long>INotifyPropertyChanged

Inherited Members DataItemBase.RegisterObservableProperty(string, string)DataItemBase.UnregisterObservableProperty(string, string)DataItemBase.UpdatePropertyRegistration(string, string, string)DataItemBase.GetValue(string)DataItemBase.OnPropertyChanged(string)DataItemBase.DataItemDataItemBase.PropertyChanged...

Constructors

C#
protected SparkDataPoint()

Properties

Gets or sets the X value.

C#
public double? XValue { get; }
Property Value:

The X value.

Gets the X value path.

C#
public string XValuePath { get; set; }
Property Value:

The X value path.

Gets or sets the Y value.

C#
public double? YValue { get; }
Property Value:

The Y value.

Gets the Y value path.

C#
public string YValuePath { get; set; }
Property Value:

The Y value path.

Methods

Compares the current instance with another 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.

C#
public int CompareTo(double other)
Parameters:otherdouble

A DateTime object to compare with this instance.

Returns:

int

Implements: IComparable<double>.CompareTo(double)

Compares the current instance with another 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.

C#
public int CompareTo(long other)
Parameters:otherlong

A DateTime object to compare with this instance.

Returns:

int

Implements: IComparable<long>.CompareTo(long)

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.

C#
public int CompareTo(object obj)
Parameters:objobject

An object to compare with this instance.

Returns:

int

Implements: IComparable.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.

C#
public int CompareTo(SparkDataPoint other)
Parameters:otherSparkDataPoint

A PeriodSpan object to compare with this instance.

Returns:

int

Implements: IComparable<SparkDataPoint>.CompareTo(SparkDataPoint)

Determines whether the specified object is equal to this instance.

C#
public override bool Equals(object obj)
Parameters:objobject

The object to compare with this instance.

Returns:

bool

true if the specified object is equal to this instance; otherwise, false.

Overrides: object.Equals(object)

Returns a hash code for this instance.

C#
public override int GetHashCode()
Returns:

int

A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.

Overrides: object.GetHashCode()

Called when data range changed.

C#
protected virtual void OnDataRangeChanged()

Called when data value changed.

C#
protected virtual void OnDataValueChanged()

Called when a property changes.

C#
protected override void OnPropertyChanged(object sender, PropertyChangedEventArgs args)
Parameters:senderobject

The sender.

argsPropertyChangedEventArgs

The PropertyChangedEventArgs instance containing the event data.

Overrides: DataItemBase.OnPropertyChanged(object, PropertyChangedEventArgs)

Operators

Implements the operator !=.

C#
public static bool operator !=(SparkDataPoint sparkDataPoint1, SparkDataPoint sparkDataPoint2)
Parameters:sparkDataPoint1SparkDataPoint

The spark data point1.

sparkDataPoint2SparkDataPoint

The spark data point2.

Returns:

bool

The result of the operator.

Implements the operator <.

C#
public static bool operator <(SparkDataPoint sparkDataPoint1, SparkDataPoint sparkDataPoint2)
Parameters:sparkDataPoint1SparkDataPoint

The spark data point1.

sparkDataPoint2SparkDataPoint

The spark data point2.

Returns:

bool

The result of the operator.

Implements the operator ==.

C#
public static bool operator ==(SparkDataPoint sparkDataPoint1, SparkDataPoint sparkDataPoint2)
Parameters:sparkDataPoint1SparkDataPoint

The spark data point1.

sparkDataPoint2SparkDataPoint

The spark data point2.

Returns:

bool

The result of the operator.

Implements the operator >.

C#
public static bool operator >(SparkDataPoint sparkDataPoint1, SparkDataPoint sparkDataPoint2)
Parameters:sparkDataPoint1SparkDataPoint

The spark data point1.

sparkDataPoint2SparkDataPoint

The spark data point2.

Returns:

bool

The result of the operator.