alexa
menu

MAUI

  • User Guide
  • Demos
  • Support
  • Forums
  • Download

    Show / Hide Table of Contents

    Class PointPort

    Represents a named connection point on a Node that a Connector can attach to precisely, instead of connecting to the node's boundary in general.

    Inheritance
    System.Object
    DiagramElement
    Port
    PointPort
    Inherited Members
    DiagramElement.OnPropertyChanged(String)
    Port.Id
    Port.IdProperty
    Port.Style
    Port.StyleProperty
    Port.Visibility
    Port.VisibilityProperty
    Namespace: Syncfusion.Maui.Diagram
    Assembly: Syncfusion.Maui.Diagram.dll
    Syntax
    public class PointPort : Port
    Remarks

    Mirrors the EJ2 Diagram PointPortModel JSON shape: { id, offset: { x, y }, style }. (0/0 is the top-left corner, 1/1 is the bottom-right corner — the same convention EJ2 uses for the default port position, {0.5, 0.5}, the node's center). Reference a port from a connector with SourcePortID/TargetPortID alongside the owning node's id in SourceID/TargetID.

    Constructors

    PointPort()

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

    Declaration
    public PointPort()

    Fields

    OffsetProperty

    Identifies the Offset bindable property.

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

    Properties

    Offset

    Gets or sets the port's normalised position within the owning Node's bounds. Uses EJ2's (x, y) convention where (0, 0) is the top-left corner and (1, 1) is the bottom-right corner. Defaults to the node's centre (0.5, 0.5). Changing any property on the DiagramPoint instance (or swapping the instance itself) automatically propagates the change through the Syncfusion.Maui.Diagram.DiagramElement.Changed bubble chain so the JavaScript side re-renders without any extra wiring.

    Declaration
    public DiagramPoint Offset { get; set; }
    Property Value
    Type
    DiagramPoint
    Back to top Generated by DocFX
    Copyright © 2001 - 2026 Syncfusion Inc. All Rights Reserved