Class ChartPoint

    Show / Hide Table of Contents

    Class ChartPoint

    Create and compare chart points.

    Inheritance
    System.Object
    ChartPoint
    Implements
    System.IEquatable<ChartPoint>
    Namespace: Syncfusion.UI.Xaml.Charts
    Assembly: Syncfusion.Chart.WinUI.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 Description
    System.Double

    Y

    Gets or sets point Y.

    Declaration
    public double Y { get; set; }
    Property Value
    Type Description
    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 point and current instance are the same type and represent the same value otherwise, false.

    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 Description
    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 point1 and point2 instance are the same type and represent the same value otherwise, false.

    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 point1 and point2 are represent not the same value otherwise, false.

    Implements

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