Class ChartPoint
Create and compare chart points.
Inheritance
Implements
Namespace: Syncfusion.UI.Xaml.Charts
Assembly: Syncfusion.SfChart.UWP.dll
Syntax
public sealed class ChartPoint : ValueType, IEquatable<ChartPoint>
Constructors
ChartPoint(Double, Double)
Called when instance created for ChartPoint.
Declaration
public ChartPoint(double x, double y)
Parameters
Type | Name | Description |
---|---|---|
System.Double | x | Used to specify X point value. |
System.Double | y | Used to specify Y point value. |
Properties
X
Gets or sets point X.
Declaration
public double X { get; set; }
Property Value
Type |
---|
System.Double |
Y
Gets or sets point Y.
Declaration
public double Y { get; set; }
Property Value
Type |
---|
System.Double |
Methods
Equals(ChartPoint)
Indicates whether this instance and a specified points are equal.
Declaration
public bool Equals(ChartPoint point)
Parameters
Type | Name | Description |
---|---|---|
ChartPoint | point | The point to compare with the current instance. |
Returns
Type | Description |
---|---|
System.Boolean | true if x and y of |
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 | The object to compare with the current instance. |
Returns
Type | Description |
---|---|
System.Boolean | true if obj and this instance are the same type and represent the same value otherwise, false. |
GetHashCode()
Returns the hash code for this instance.
Declaration
public override int GetHashCode()
Returns
Type |
---|
System.Int32 |
Operators
Equality(ChartPoint, ChartPoint)
Indicates whether the both instance and a specified points are equal.
Declaration
public static bool operator ==(ChartPoint point1, ChartPoint point2)
Parameters
Type | Name | Description |
---|---|---|
ChartPoint | point1 | |
ChartPoint | point2 |
Returns
Type | Description |
---|---|
System.Boolean | true if |
Inequality(ChartPoint, ChartPoint)
Indicates whether both the specified points are not equal.
Declaration
public static bool operator !=(ChartPoint point1, ChartPoint point2)
Parameters
Type | Name | Description |
---|---|---|
ChartPoint | point1 | |
ChartPoint | point2 |
Returns
Type | Description |
---|---|
System.Boolean | true if |