Class Connector
Inherited Members
Namespace: Syncfusion.Maui.Diagram
Assembly: Syncfusion.Maui.Diagram.dll
Syntax
public class Connector : NodeBase
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
AnnotationsProperty
Identifies the Annotations bindable property.
Declaration
public static readonly BindableProperty AnnotationsProperty
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 |
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
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> |
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 |
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 |