alexa
menu

MAUI

  • User Guide
  • Demos
  • Support
  • Forums
  • Download

    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
    System.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
    System.Double x

    Normalised horizontal offset (0–1).

    System.Double y

    Normalised vertical offset (0–1).

    Fields

    XProperty

    Identifies the X bindable property.

    Declaration
    public static readonly BindableProperty XProperty
    Field Value
    Type
    Microsoft.Maui.Controls.BindableProperty

    YProperty

    Identifies the Y bindable property.

    Declaration
    public static readonly BindableProperty YProperty
    Field Value
    Type
    Microsoft.Maui.Controls.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
    System.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
    System.Double
    Back to top Generated by DocFX
    Copyright © 2001 - 2026 Syncfusion Inc. All Rights Reserved