Class Connector
Inherited Members
Namespace: Syncfusion.Maui.Diagram
Assembly: Syncfusion.Maui.Diagram.dll
Syntax
public class Connector : DiagramElement
Remarks
Mirrors the EJ2 Diagram ConnectorModel JSON shape: { id, sourceID, targetID, sourcePortID,
targetPortID, sourcePoint, targetPoint, type, style, sourceDecorator, targetDecorator, annotations }.
Set either SourceID/TargetID to attach to nodes, or SourcePoint/
TargetPoint for a floating end — a connector needs at least one source and one target.
SourcePortID/TargetPortID optionally narrow a node attachment to one of
that node's Ports.
Constructors
Connector()
Initializes a new instance of the Connector class.
Declaration
public Connector()
Fields
AddInfoProperty
Identifies the AddInfo bindable property.
Declaration
public static readonly BindableProperty AddInfoProperty
Field Value
| Type |
|---|
| Microsoft.Maui.Controls.BindableProperty |
AnnotationsProperty
Identifies the Annotations bindable property.
Declaration
public static readonly BindableProperty AnnotationsProperty
Field Value
| Type |
|---|
| Microsoft.Maui.Controls.BindableProperty |
IdProperty
Identifies the Id bindable property.
Declaration
public static readonly BindableProperty IdProperty
Field Value
| Type |
|---|
| Microsoft.Maui.Controls.BindableProperty |
SourceDecoratorProperty
Identifies the SourceDecorator bindable property.
Declaration
public static readonly BindableProperty SourceDecoratorProperty
Field Value
| Type |
|---|
| Microsoft.Maui.Controls.BindableProperty |
SourceIDProperty
Identifies the SourceID bindable property.
Declaration
public static readonly BindableProperty SourceIDProperty
Field Value
| Type |
|---|
| Microsoft.Maui.Controls.BindableProperty |
SourcePointProperty
Identifies the SourcePoint bindable property.
Declaration
public static readonly BindableProperty SourcePointProperty
Field Value
| Type |
|---|
| Microsoft.Maui.Controls.BindableProperty |
SourcePortIDProperty
Identifies the SourcePortID bindable property.
Declaration
public static readonly BindableProperty SourcePortIDProperty
Field Value
| Type |
|---|
| Microsoft.Maui.Controls.BindableProperty |
StyleProperty
Identifies the Style bindable property.
Declaration
public static readonly BindableProperty StyleProperty
Field Value
| Type |
|---|
| Microsoft.Maui.Controls.BindableProperty |
TargetDecoratorProperty
Identifies the TargetDecorator bindable property.
Declaration
public static readonly BindableProperty TargetDecoratorProperty
Field Value
| Type |
|---|
| Microsoft.Maui.Controls.BindableProperty |
TargetIDProperty
Identifies the TargetID bindable property.
Declaration
public static readonly BindableProperty TargetIDProperty
Field Value
| Type |
|---|
| Microsoft.Maui.Controls.BindableProperty |
TargetPointProperty
Identifies the TargetPoint bindable property.
Declaration
public static readonly BindableProperty TargetPointProperty
Field Value
| Type |
|---|
| Microsoft.Maui.Controls.BindableProperty |
TargetPortIDProperty
Identifies the TargetPortID bindable property.
Declaration
public static readonly BindableProperty TargetPortIDProperty
Field Value
| Type |
|---|
| Microsoft.Maui.Controls.BindableProperty |
TypeProperty
Identifies the Type bindable property.
Declaration
public static readonly BindableProperty TypeProperty
Field Value
| Type |
|---|
| Microsoft.Maui.Controls.BindableProperty |
Properties
AddInfo
Gets or sets arbitrary application data associated with this connector. Not sent to the JavaScript side.
Declaration
public object AddInfo { get; set; }
Property Value
| Type |
|---|
| System.Object |
Annotations
Gets or sets the collection of text labels attached to this connector.
Declaration
public ObservableCollection<PathAnnotation> Annotations { get; set; }
Property Value
| Type |
|---|
| System.Collections.ObjectModel.ObservableCollection<PathAnnotation> |
Id
Gets or sets the connector's identifier. Assigned automatically when left null.
Declaration
public string Id { get; set; }
Property Value
| Type |
|---|
| System.String |
IsSelected
Gets a value indicating whether this connector is currently selected in the diagram's UI. Updated from the JavaScript side (Phase 2's two-way interaction sync); setting it programmatically has no effect on the diagram's actual selection. Not sent to the JavaScript side, and not routed through Syncfusion.Maui.Diagram.DiagramElement.Changed — see the identical note on Syncfusion.Maui.Diagram.Node.IsSelected.
Declaration
public bool IsSelected { get; }
Property Value
| Type |
|---|
| System.Boolean |
SourceDecorator
Gets or sets the decorator drawn at the source end. Defaults to no decorator.
Declaration
public DecoratorSettings SourceDecorator { get; set; }
Property Value
| Type |
|---|
| DecoratorSettings |
SourceID
Gets or sets the Id of the node this connector starts from.
Declaration
public string SourceID { get; set; }
Property Value
| Type |
|---|
| System.String |
SourcePoint
Gets or sets a fixed source point, in diagram units. Ignored when SourceID is set.
Declaration
public Nullable<Point> SourcePoint { get; set; }
Property Value
| Type |
|---|
| System.Nullable<Microsoft.Maui.Graphics.Point> |
SourcePortID
Gets or sets the Id, on the node identified by SourceID, that this connector attaches to precisely. Ignored unless SourceID is also set.
Declaration
public string SourcePortID { get; set; }
Property Value
| Type |
|---|
| System.String |
Style
Gets or sets the connector's line appearance.
Declaration
public ShapeStyle Style { get; set; }
Property Value
| Type |
|---|
| ShapeStyle |
TargetDecorator
Gets or sets the decorator drawn at the target end. Defaults to a filled arrowhead.
Declaration
public DecoratorSettings TargetDecorator { get; set; }
Property Value
| Type |
|---|
| DecoratorSettings |
TargetID
Gets or sets the Id of the node this connector ends at.
Declaration
public string TargetID { get; set; }
Property Value
| Type |
|---|
| System.String |
TargetPoint
Gets or sets a fixed target point, in diagram units. Ignored when TargetID is set.
Declaration
public Nullable<Point> TargetPoint { get; set; }
Property Value
| Type |
|---|
| System.Nullable<Microsoft.Maui.Graphics.Point> |
TargetPortID
Gets or sets the Id, on the node identified by TargetID, that this connector attaches to precisely. Ignored unless TargetID is also set.
Declaration
public string TargetPortID { get; set; }
Property Value
| Type |
|---|
| System.String |
Type
Gets or sets how the connector routes between its source and target.
Declaration
public ConnectorSegmentType Type { get; set; }
Property Value
| Type |
|---|
| ConnectorSegmentType |