alexa
Syncfusion
menu Syncfusion

MAUI

  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Search Results for

    Show / Hide Table of Contents

    Class Connector

    Represents a link between two Nodes (or between fixed points) in a SfDiagram.

    Inheritance
    object
    DiagramElement
    NodeBase
    Connector
    Inherited Members
    DiagramElement.OnPropertyChanged(string)
    NodeBase.AddInfo
    NodeBase.AddInfoProperty
    NodeBase.Id
    NodeBase.IdProperty
    NodeBase.Style
    NodeBase.StyleProperty
    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
    BindableProperty

    CornerRadiusProperty

    Identifies the CornerRadius bindable property.

    Declaration
    public static readonly BindableProperty CornerRadiusProperty
    Field Value
    Type
    BindableProperty

    SourceDecoratorProperty

    Identifies the SourceDecorator bindable property.

    Declaration
    public static readonly BindableProperty SourceDecoratorProperty
    Field Value
    Type
    BindableProperty

    SourceIDProperty

    Identifies the SourceID bindable property.

    Declaration
    public static readonly BindableProperty SourceIDProperty
    Field Value
    Type
    BindableProperty

    SourcePaddingProperty

    Identifies the SourcePadding bindable property.

    Declaration
    public static readonly BindableProperty SourcePaddingProperty
    Field Value
    Type
    BindableProperty

    SourcePointProperty

    Identifies the SourcePoint bindable property.

    Declaration
    public static readonly BindableProperty SourcePointProperty
    Field Value
    Type
    BindableProperty

    SourcePortIDProperty

    Identifies the SourcePortID bindable property.

    Declaration
    public static readonly BindableProperty SourcePortIDProperty
    Field Value
    Type
    BindableProperty

    TargetDecoratorProperty

    Identifies the TargetDecorator bindable property.

    Declaration
    public static readonly BindableProperty TargetDecoratorProperty
    Field Value
    Type
    BindableProperty

    TargetIDProperty

    Identifies the TargetID bindable property.

    Declaration
    public static readonly BindableProperty TargetIDProperty
    Field Value
    Type
    BindableProperty

    TargetPaddingProperty

    Identifies the TargetPadding bindable property.

    Declaration
    public static readonly BindableProperty TargetPaddingProperty
    Field Value
    Type
    BindableProperty

    TargetPointProperty

    Identifies the TargetPoint bindable property.

    Declaration
    public static readonly BindableProperty TargetPointProperty
    Field Value
    Type
    BindableProperty

    TargetPortIDProperty

    Identifies the TargetPortID bindable property.

    Declaration
    public static readonly BindableProperty TargetPortIDProperty
    Field Value
    Type
    BindableProperty

    TypeProperty

    Identifies the Type bindable property.

    Declaration
    public static readonly BindableProperty TypeProperty
    Field Value
    Type
    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
    ObservableCollection<PathAnnotation>

    CornerRadius

    Gets or sets the radius used to round the corners of an orthogonal connector.

    Declaration
    public double CornerRadius { get; set; }
    Property Value
    Type
    double

    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
    string

    SourcePadding

    Gets or sets the gap between the connector's start and the source node's border.

    Declaration
    public double SourcePadding { get; set; }
    Property Value
    Type
    double

    SourcePoint

    Gets or sets a fixed source point, in diagram units. Ignored when SourceID is set.

    Declaration
    public Point? SourcePoint { get; set; }
    Property Value
    Type
    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
    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
    string

    TargetPadding

    Gets or sets the gap between the connector's end and the target node's border.

    Declaration
    public double TargetPadding { get; set; }
    Property Value
    Type
    double

    TargetPoint

    Gets or sets a fixed target point, in diagram units. Ignored when TargetID is set.

    Declaration
    public Point? TargetPoint { get; set; }
    Property Value
    Type
    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
    string

    Type

    Gets or sets how the connector routes between its source and target.

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