alexa
menu

Blazor

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

    Show / Hide Table of Contents

    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.

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