Class PortShapes
Specifies the shape of the ports.
Inheritance
System.Object
PortShapes
Namespace: Syncfusion.Blazor.Diagram
Assembly: Syncfusion.Blazor.dll
Syntax
public sealed class PortShapes : Enum
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
Circle
Sets the shape of the port to Circle.
Declaration
public const PortShapes Circle
Field Value
Type |
---|
PortShapes |
Custom
Sets the shape of the port to Custom.
Declaration
public const PortShapes Custom
Field Value
Type |
---|
PortShapes |
Square
Sets the shape of the port to Square.
Declaration
public const PortShapes Square
Field Value
Type |
---|
PortShapes |
X
Sets the shape of the port to X.
Declaration
public const PortShapes X
Field Value
Type |
---|
PortShapes |