menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class PortConstraints - Blazor API Reference | Syncfusion

    Show / Hide Table of Contents

    Class PortConstraints

    Enables or disables certain features of the port.

    Inheritance
    System.Object
    PortConstraints
    Namespace: Syncfusion.Blazor.Diagram
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public sealed class PortConstraints : Enum
    Examples
    Node node = new Node()
    {
        Ports = new DiagramObjectCollection<PointPort>()
        {
            new PointPort() 
            { 
                Constraints = PortConstraints.Draw
            }
        }
    };

    Fields

    Default

    Enables all constraints of a port.

    Declaration
    public const PortConstraints Default
    Field Value
    Type
    PortConstraints

    Draw

    Enables or disables creating the connection when the mouse hovers on the port.

    Declaration
    public const PortConstraints Draw
    Field Value
    Type
    PortConstraints

    InConnect

    Enables or disables connecting only the target end of the connector.

    Declaration
    public const PortConstraints InConnect
    Field Value
    Type
    PortConstraints

    None

    Disables all the port functionalities.

    Declaration
    public const PortConstraints None
    Field Value
    Type
    PortConstraints

    OutConnect

    Enables or disables connecting only the source end of the connector.

    Declaration
    public const PortConstraints OutConnect
    Field Value
    Type
    PortConstraints
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved