Class PortConnectionDirection
Represents the allowed direction for connections to the port.
Inheritance
System.Object
PortConnectionDirection
Namespace: Syncfusion.Blazor.Diagram
Assembly: Syncfusion.Blazor.dll
Syntax
public sealed class PortConnectionDirection : Enum
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
Auto
Maintains the default behavior of automatic direction calculation.
Declaration
public const PortConnectionDirection Auto
Field Value
Bottom
Restricts connections to only connect to the bottom side of the port.
Declaration
public const PortConnectionDirection Bottom
Field Value
Left
Restricts connections to only connect to the left side of the port.
Declaration
public const PortConnectionDirection Left
Field Value
Right
Restricts connections to only connect to the right side of the port.
Declaration
public const PortConnectionDirection Right
Field Value
Top
Restricts connections to only connect to the top side of the port.
Declaration
public const PortConnectionDirection Top