alexa
Syncfusion
menu Syncfusion

MAUI

  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Search Results for

    Show / Hide Table of Contents

    Class DiagramPoint

    Represents a 2-D point in the diagram's coordinate system, used as the Offset value that positions a port relative to its owning Node.

    Inheritance
    object
    DiagramElement
    DiagramPoint
    Inherited Members
    DiagramElement.OnPropertyChanged(string)
    Namespace: Syncfusion.Maui.Diagram
    Assembly: Syncfusion.Maui.Diagram.dll
    Syntax
    public class DiagramPoint : DiagramElement
    Remarks

    Coordinates follow EJ2's own normalised convention: (0, 0) is the node's top-left corner and (1, 1) is the bottom-right corner, so the centre of the node is (0.5, 0.5) — the same default that EJ2 uses for a port's offset when none is explicitly specified. Extends DiagramElement so that any X/Y change bubbles up through the owning PointPort → Node → SfDiagram change pipeline and triggers a JavaScript-side re-render automatically.

    Constructors

    DiagramPoint()

    Initializes a new DiagramPoint at the node's centre (0.5, 0.5).

    Declaration
    public DiagramPoint()

    DiagramPoint(double, double)

    Initializes a new DiagramPoint with the given normalised coordinates.

    Declaration
    public DiagramPoint(double x, double y)
    Parameters
    Type Name Description
    double x

    Normalised horizontal offset (0–1).

    double y

    Normalised vertical offset (0–1).

    Fields

    XProperty

    Identifies the X bindable property.

    Declaration
    public static readonly BindableProperty XProperty
    Field Value
    Type
    BindableProperty

    YProperty

    Identifies the Y bindable property.

    Declaration
    public static readonly BindableProperty YProperty
    Field Value
    Type
    BindableProperty

    Properties

    X

    Gets or sets the normalised horizontal position within the owning node's bounds. 0 = left edge, 1 = right edge, 0.5 = horizontal centre. Defaults to 0.5.

    Declaration
    public double X { get; set; }
    Property Value
    Type
    double

    Y

    Gets or sets the normalised vertical position within the owning node's bounds. 0 = top edge, 1 = bottom edge, 0.5 = vertical centre. Defaults to 0.5.

    Declaration
    public double Y { get; set; }
    Property Value
    Type
    double

    Methods

    Equals(object?)

    Returns true when obj is a DiagramPoint with the same X and Y values.

    Declaration
    public override bool Equals(object? obj)
    Parameters
    Type Name Description
    object obj
    Returns
    Type
    bool

    GetHashCode()

    Returns a hash code consistent with value-based Equals(object?).

    Declaration
    public override int GetHashCode()
    Returns
    Type
    int

    Operators

    operator ==(DiagramPoint?, DiagramPoint?)

    Value-equality operator.

    Declaration
    public static bool operator ==(DiagramPoint? left, DiagramPoint? right)
    Parameters
    Type Name Description
    DiagramPoint left
    DiagramPoint right
    Returns
    Type
    bool

    operator !=(DiagramPoint?, DiagramPoint?)

    Value-inequality operator.

    Declaration
    public static bool operator !=(DiagramPoint? left, DiagramPoint? right)
    Parameters
    Type Name Description
    DiagramPoint left
    DiagramPoint right
    Returns
    Type
    bool
    In this article
    Back to top Generated by DocFX
    Copyright © 2001 - 2026 Syncfusion Inc. All Rights Reserved