Blazor

Upgrade Guide User Guide Demos Support Forums Download
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class ConnectorConstraints - Blazor API Reference | Syncfusion

    Show / Hide Table of Contents

    Class ConnectorConstraints

    The connector constraints allow the users to enable or disable certain behaviors and features of the connectors.

    Inheritance
    System.Object
    ConnectorConstraints
    Namespace: Syncfusion.Blazor.Diagrams
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public sealed class ConnectorConstraints : Enum
    Remarks
    The connector constraints can be enabled or disabled using the Bitwise operators. The ‘~’ operator can be used to disable the connector constraints.
    The below code snippet is an example to set connector constraints to default and to enable connector selection.
    Examples
    <SfDiagram Height="600px" Connectors="@ConnectorCollection">
    </SfDiagram>
    @code{
      ObservableCollection<DiagramConnector> ConnectorCollection;
       protected override void OnInitialized()
       {
           ConnectorCollection = new ObservableCollection<DiagramConnector>();
           DiagramConnector Connector = new DiagramConnector()
           {
               SourcePoint = new ConnectorSourcePoint() { X = 100, Y = 100 },
               TargetPoint = new ConnectorTargetPoint() { X = 200, Y = 200 },
               //sets the ConnectorConstraints...
               Constraints = ConnectorConstraints.Default & ~ConnectorConstraints.Select
           };
           ConnectorCollection.Add(Connector);
       }
    }

    Fields

    AllowDrop

    Enables to trigger drop event when any object is dragged or dropped to the connector.

    Declaration
    public const ConnectorConstraints AllowDrop
    Field Value
    Type Description
    ConnectorConstraints

    BridgeObstacle

    Enables the connector to be treated as bridge obstacle..

    Declaration
    public const ConnectorConstraints BridgeObstacle
    Field Value
    Type Description
    ConnectorConstraints

    Bridging

    Enables bridging to the connector.

    Declaration
    public const ConnectorConstraints Bridging
    Field Value
    Type Description
    ConnectorConstraints

    ConnectToNearByElement

    Enables to connect nearest elements.

    Declaration
    public const ConnectorConstraints ConnectToNearByElement
    Field Value
    Type Description
    ConnectorConstraints

    ConnectToNearByNode

    Enables to connect nearest node.

    Declaration
    public const ConnectorConstraints ConnectToNearByNode
    Field Value
    Type Description
    ConnectorConstraints

    ConnectToNearByPort

    Enables to connect nearest port.

    Declaration
    public const ConnectorConstraints ConnectToNearByPort
    Field Value
    Type Description
    ConnectorConstraints

    Default

    Enables all constraints for the connector.

    Declaration
    public const ConnectorConstraints Default
    Field Value
    Type Description
    ConnectorConstraints

    Delete

    Enables or Disables the deletion of a connector.

    Declaration
    public const ConnectorConstraints Delete
    Field Value
    Type Description
    ConnectorConstraints

    Drag

    Enables or Disables connector to be Dragged.

    Declaration
    public const ConnectorConstraints Drag
    Field Value
    Type Description
    ConnectorConstraints

    DragSegmentThumb

    Enables the control point and endpoint of every segment in a connector for editing.

    Declaration
    public const ConnectorConstraints DragSegmentThumb
    Field Value
    Type Description
    ConnectorConstraints

    DragSourceEnd

    Enables the connector's source end to be dragged.

    Declaration
    public const ConnectorConstraints DragSourceEnd
    Field Value
    Type Description
    ConnectorConstraints

    DragTargetEnd

    Enables connectors target end to be dragged.

    Declaration
    public const ConnectorConstraints DragTargetEnd
    Field Value
    Type Description
    ConnectorConstraints

    InheritBridging

    Enables to inherit bridging option from the parent object.

    Declaration
    public const ConnectorConstraints InheritBridging
    Field Value
    Type Description
    ConnectorConstraints

    InheritLineRouting

    Enables or disables to inheriting the routing option from the parent.

    Declaration
    public const ConnectorConstraints InheritLineRouting
    Field Value
    Type Description
    ConnectorConstraints

    InheritTooltip

    Enables or disables to inheriting tooltip option from the parent object.

    Declaration
    public const ConnectorConstraints InheritTooltip
    Field Value
    Type Description
    ConnectorConstraints

    Interaction

    Enables or disables Interaction for the connector.

    Declaration
    public const ConnectorConstraints Interaction
    Field Value
    Type Description
    ConnectorConstraints

    LineRouting

    Enables or disables routing to the connector.

    Declaration
    public const ConnectorConstraints LineRouting
    Field Value
    Type Description
    ConnectorConstraints

    None

    Disable all connector Constraints.

    Declaration
    public const ConnectorConstraints None
    Field Value
    Type Description
    ConnectorConstraints

    PointerEvents

    Enables to set the pointer-events.

    Declaration
    public const ConnectorConstraints PointerEvents
    Field Value
    Type Description
    ConnectorConstraints

    ReadOnly

    Enables or disables read-only for the connector.

    Declaration
    public const ConnectorConstraints ReadOnly
    Field Value
    Type Description
    ConnectorConstraints

    Select

    Enables or Disables the selection of a connector.

    Declaration
    public const ConnectorConstraints Select
    Field Value
    Type Description
    ConnectorConstraints

    Tooltip

    Enables or disables tooltip for the connectors.

    Declaration
    public const ConnectorConstraints Tooltip
    Field Value
    Type Description
    ConnectorConstraints

    value__

    Declaration
    public int value__
    Field Value
    Type Description
    System.Int32
    Back to top Generated by DocFX
    Copyright © 2001 - 2022 Syncfusion Inc. All Rights Reserved