alexa
menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Search Results for

    Show / Hide Table of Contents

    Enum PortConnectionDirection

    Represents the allowed direction for connections to the port.

    Namespace: Syncfusion.Blazor.Diagram
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public enum PortConnectionDirection
    Remarks
    • Auto - Maintains the default behavior of automatic direction calculation.
    • Left - Restricts connections to only connect to the left side of the port.
    • Right - Restricts connections to only connect to the right side of the port.
    • Top - Restricts connections to only connect to the top side of the port.
    • Bottom - Restricts connections to only connect to the bottom side of the port.
    Examples
    Node Node = new Node()
    {
      ID = "node1",
      Height = 100,
      Width = 100,
      OffsetX = 100,
      OffsetY = 100,
    };
    Node.Ports = new DiagramObjectCollection<PointPort>()
    {
      new PointPort()
      {
        ConnectionDirection=PortConnectionDirection.Left
       }
     };

    Fields

    Name Description
    Auto

    Maintains the default behavior of automatic direction calculation.

    Bottom

    Restricts connections to only connect to the bottom side of the port.

    Left

    Restricts connections to only connect to the left side of the port.

    Right

    Restricts connections to only connect to the right side of the port.

    Top

    Restricts connections to only connect to the top side of the port.

    In this article
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved