Class
SparkDataPoint

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:

cs-api-definition
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

SparkDataPoint()

Declaration

cs-api-definition
protected SparkDataPoint()

Properties

XValue

Gets or sets the X value.

Declaration

cs-api-definition
public double? XValue { get; }

Property Value

double?

The X value.

XValuePath

Gets the X value path.

Declaration

cs-api-definition
public string XValuePath { get; set; }

Property Value

string

The X value path.

YValue

Gets or sets the Y value.

Declaration

cs-api-definition
public double? YValue { get; }

Property Value

double?

The Y value.

YValuePath

Gets the Y value path.

Declaration

cs-api-definition
public string YValuePath { get; set; }

Property Value

string

The Y value path.

Methods

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

cs-api-definition
public int CompareTo(SparkDataPoint other)

Parameters

other

SparkDataPoint

A PeriodSpan object to compare with this instance.

Returns

int

Implements IComparable<SparkDataPoint>.CompareTo(SparkDataPoint)

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.

Declaration

cs-api-definition
public int CompareTo(double other)

Parameters

other

double

A DateTime object to compare with this instance.

Returns

int

Implements IComparable<double>.CompareTo(double)

CompareTo(long)

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.

Declaration

cs-api-definition
public int CompareTo(long other)

Parameters

other

long

A DateTime object to compare with this instance.

Returns

int

Implements IComparable<long>.CompareTo(long)

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

cs-api-definition
public int CompareTo(object obj)

Parameters

obj

object

An object to compare with this instance.

Returns

int

Implements IComparable.CompareTo(object)

Equals(object)

Determines whether the specified object is equal to this instance.

Declaration

cs-api-definition
public override bool Equals(object obj)

Parameters

obj

object

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)

GetHashCode()

Returns a hash code for this instance.

Declaration

cs-api-definition
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()

OnDataRangeChanged()

Called when data range changed.

Declaration

cs-api-definition
protected virtual void OnDataRangeChanged()

OnDataValueChanged()

Called when data value changed.

Declaration

cs-api-definition
protected virtual void OnDataValueChanged()

OnPropertyChanged(object, PropertyChangedEventArgs)

Called when a property changes.

Declaration

cs-api-definition
protected override void OnPropertyChanged(object sender, PropertyChangedEventArgs args)

Parameters

sender

object

The sender.

args

PropertyChangedEventArgs

The PropertyChangedEventArgs instance containing the event data.

Overrides DataItemBase.OnPropertyChanged(object, PropertyChangedEventArgs)

Operators

operator !=(SparkDataPoint, SparkDataPoint)

Implements the operator !=.

Declaration

cs-api-definition
public static bool operator !=(SparkDataPoint sparkDataPoint1, SparkDataPoint sparkDataPoint2)

Parameters

sparkDataPoint1

SparkDataPoint

The spark data point1.

sparkDataPoint2

SparkDataPoint

The spark data point2.

Returns

bool

The result of the operator.

operator <(SparkDataPoint, SparkDataPoint)

Implements the operator <.

Declaration

cs-api-definition
public static bool operator <(SparkDataPoint sparkDataPoint1, SparkDataPoint sparkDataPoint2)

Parameters

sparkDataPoint1

SparkDataPoint

The spark data point1.

sparkDataPoint2

SparkDataPoint

The spark data point2.

Returns

bool

The result of the operator.

operator ==(SparkDataPoint, SparkDataPoint)

Implements the operator ==.

Declaration

cs-api-definition
public static bool operator ==(SparkDataPoint sparkDataPoint1, SparkDataPoint sparkDataPoint2)

Parameters

sparkDataPoint1

SparkDataPoint

The spark data point1.

sparkDataPoint2

SparkDataPoint

The spark data point2.

Returns

bool

The result of the operator.

operator >(SparkDataPoint, SparkDataPoint)

Implements the operator >.

Declaration

cs-api-definition
public static bool operator >(SparkDataPoint sparkDataPoint1, SparkDataPoint sparkDataPoint2)

Parameters

sparkDataPoint1

SparkDataPoint

The spark data point1.

sparkDataPoint2

SparkDataPoint

The spark data point2.

Returns

bool

The result of the operator.