Enum PortShapes
Specifies the shape of the ports.
Namespace: Syncfusion.Blazor.Diagram
Assembly: Syncfusion.Blazor.dll
Syntax
public enum PortShapes
Remarks
To know more about using port shapes, refer to the Ports. To apply the X port shape, use the below code
Examples
Node Node = new Node()
{
ID = "node1",
Height = 100,
Width = 100,
OffsetX = 100,
OffsetY = 100,
};
Node.Ports = new DiagramObjectCollection<PointPort>()
{
new PointPort()
{
Shape=PortShapes.X,
}
};
}
Fields
| Name | Description |
|---|---|
| Circle | Sets the shape of the port to Circle. |
| Custom | Sets the shape of the port to Custom. |
| Square | Sets the shape of the port to Square. |
| X | Sets the shape of the port to X. |