Class DiagramConnector
Inheritance
Namespace: Syncfusion.EJ2.Diagrams
Assembly: Syncfusion.EJ2.dll
Syntax
public class DiagramConnector : EJTagHelper
Constructors
DiagramConnector()
Declaration
public DiagramConnector()
Properties
AddInfo
Allows the user to save custom information/data about a node/connector
Declaration
public object AddInfo { get; set; }
Property Value
Type | Description |
---|---|
System.Object | The default value is null |
AllowNodeOverlap
Specifies a value indicating whether to overlap the connector over with the source and target node. If the LineRouting is enabled in the diagram, then allowNodeOverlap property will not work.
Declaration
public bool AllowNodeOverlap { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | The default value is false |
Annotations
Declaration
public List<DiagramConnectorAnnotation> Annotations { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<DiagramConnectorAnnotation> | The default value is null |
BezierSettings
Sets the bezier settings of editing the segments.
Declaration
public object BezierSettings { get; set; }
Property Value
Type | Description |
---|---|
System.Object | The default value is null |
BridgeSpace
Defines the bridgeSpace of connector
Declaration
public double BridgeSpace { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The default value is 10 |
ConnectionPadding
Sets the connector padding value
Declaration
public double ConnectionPadding { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The default value is 0 |
ConnectorSpacing
Sets the distance between source node and connector
Declaration
public double ConnectorSpacing { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The default value is 13 |
Constraints
Defines the constraints of connector None - Interaction of the connectors cannot be done. Select - Selects the connector. Delete - Delete the connector. Drag - Drag the connector. DragSourceEnd - Drag the source end of the connector. DragTargetEnd - Drag the target end of the connector. DragSegmentThump - Drag the segment thumb of the connector. AllowDrop - Allow to drop a node. Bridging - Creates bridge on intersection of two connectors. InheritBridging - Creates bridge on intersection of two connectors. PointerEvents - Sets the pointer events. Tooltip - Displays a tooltip for the connectors. InheritToolTip - Displays a tooltip for the connectors. Interaction - Features of the connector used for interaction. ReadOnly - Enables ReadOnly
Declaration
public ConnectorConstraints Constraints { get; set; }
Property Value
Type | Description |
---|---|
ConnectorConstraints | The default value is ConnectorConstraints.Default |
CornerRadius
Sets the corner radius of the connector
Declaration
public double CornerRadius { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The default value is 0 |
DragSize
Defines the size of a drop symbol
Declaration
public object DragSize { get; set; }
Property Value
Type | Description |
---|---|
System.Object | The default value is null |
ExcludeFromLayout
Defines whether the node should be automatically positioned or not. Applicable, if layout option is enabled.
Declaration
public bool ExcludeFromLayout { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | The default value is false |
FixedUserHandles
Specifies the collection of the fixed user handle
Declaration
public List<DiagramConnectorFixedUserHandle> FixedUserHandles { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<DiagramConnectorFixedUserHandle> | The default value is null |
Flip
Flip the element in Horizontal/Vertical directions
Declaration
public FlipDirection Flip { get; set; }
Property Value
Type | Description |
---|---|
FlipDirection | The default value is FlipDirection.None |
FlipMode
Allows you to flip only the node or along with port and label
Declaration
public FlipMode FlipMode { get; set; }
Property Value
Type | Description |
---|---|
FlipMode | The default value is FlipMode.All |
HitPadding
Sets the connector padding value
Declaration
public double HitPadding { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The default value is 10 |
Id
Represents the unique id of nodes/connectors
Declaration
public override string Id { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is "" |
Overrides
Margin
Defines the space to be left between the node and its immediate parent
Declaration
public DiagramMargin Margin { get; set; }
Property Value
Type | Description |
---|---|
DiagramMargin | The default value is null |
MaxSegmentThumb
Sets the maximum segment thumb for the connector
Declaration
public double MaxSegmentThumb { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The default value is Double.NaN |
Ports
Defines the behavior of connection ports
Declaration
public object Ports { get; set; }
Property Value
Type | Description |
---|---|
System.Object | The default value is null |
PreviewSize
Defines the size of the symbol preview
Declaration
public object PreviewSize { get; set; }
Property Value
Type | Description |
---|---|
System.Object | The default value is null |
Segments
Defines the segments
Declaration
public object Segments { get; set; }
Property Value
Type | Description |
---|---|
System.Object | The default value is null |
SegmentThumbShape
Defines the shape for the connector segmentThumb Rhombus - Sets the segmentThumb shape as Rhombus Square - Sets the segmentThumb shape as Square Rectangle - Sets the segmentThumb shape as Rectangle Ellipse - Sets the segmentThumb shape as Ellipse Arrow - Sets the segmentThumb shape as Arrow Diamond - Sets the segmentThumb shape as Diamond OpenArrow - Sets the segmentThumb shape as OpenArrow Circle - Sets the segmentThumb shape as Circle Fletch - Sets the segmentThumb shape as Fletch OpenFetch - Sets the segmentThumb shape as OpenFetch IndentedArrow - Sets the segmentThumb shape as Indented Arrow OutdentedArrow - Sets the segmentThumb shape as Outdented Arrow DoubleArrow - Sets the segmentThumb shape as DoubleArrow
Declaration
public SegmentThumbShapes SegmentThumbShape { get; set; }
Property Value
Type | Description |
---|---|
SegmentThumbShapes | The default value is SegmentThumbShapes.Circle |
SegmentThumbSize
Specifies the size of the segment thumb for individual connector. When not set, it defaults to matching the underlying path data
Declaration
public double SegmentThumbSize { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The default value is 10 |
Shape
Defines the shape of the connector
Declaration
public object Shape { get; set; }
Property Value
Type | Description |
---|---|
System.Object | The default value is null |
SourceDecorator
Defines the source decorator of the connector
Declaration
public DiagramDecorator SourceDecorator { get; set; }
Property Value
Type | Description |
---|---|
DiagramDecorator | The default value is null |
SourceID
Sets the source node/connector object of the connector
Declaration
public string SourceID { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is null |
SourcePadding
Sets the source padding of the connector
Declaration
public double SourcePadding { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The default value is 0 |
SourcePoint
Sets the beginning point of the connector
Declaration
public DiagramPoint SourcePoint { get; set; }
Property Value
Type | Description |
---|---|
DiagramPoint | The default value is null |
SourcePortID
Sets the unique id of the source port of the connector
Declaration
public string SourcePortID { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is "" |
Style
Defines the appearance of the connection path
Declaration
public DiagramStrokeStyle Style { get; set; }
Property Value
Type | Description |
---|---|
DiagramStrokeStyle | The default value is null |
SymbolInfo
Defines the symbol info of a connector
Declaration
public object SymbolInfo { get; set; }
Property Value
Type | Description |
---|---|
System.Object | The default value is null |
TargetDecorator
Defines the target decorator of the connector
Declaration
public DiagramDecorator TargetDecorator { get; set; }
Property Value
Type | Description |
---|---|
DiagramDecorator | The default value is null |
TargetID
Sets the target node/connector object of the connector
Declaration
public string TargetID { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is null |
TargetPadding
Sets the target padding of the connector
Declaration
public double TargetPadding { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The default value is 0 |
TargetPoint
Sets the end point of the connector
Declaration
public DiagramPoint TargetPoint { get; set; }
Property Value
Type | Description |
---|---|
DiagramPoint | The default value is null |
TargetPortID
Sets the unique id of the target port of the connector
Declaration
public string TargetPortID { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is "" |
Tooltip
defines the tooltip for the connector
Declaration
public DiagramDiagramTooltip Tooltip { get; set; }
Property Value
Type | Description |
---|---|
DiagramDiagramTooltip | The default value is null |
Type
Defines the type of the connector Straight - Sets the segment type as Straight Orthogonal - Sets the segment type as Orthogonal Bezier - Sets the segment type as Bezier
Declaration
public Segments Type { get; set; }
Property Value
Type | Description |
---|---|
Segments | The default value is Syncfusion.EJ2.Diagrams.Segments.Straight |
Visible
Sets the visibility of the node/connector
Declaration
public bool Visible { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | The default value is true |
Wrapper
Defines the UI of the connector
Declaration
public object Wrapper { get; set; }
Property Value
Type | Description |
---|---|
System.Object | The default value is null |
ZIndex
Defines the visual order of the node/connector in DOM
Declaration
public double ZIndex { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The default value is 5e-324 |