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.
Inherited Members
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 |