menu

UWP

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

    Show / Hide Table of Contents

    Class PortConstraints

    Specifies to enable/disable certain behaviors for Ports.

    Inheritance
    System.Object
    PortConstraints
    Namespace: Syncfusion.UI.Xaml.Diagram
    Assembly: Syncfusion.SfDiagram.UWP.dll
    Syntax
    public sealed class PortConstraints : Enum

    Fields

    Connectable

    Enables or disables connection to the Connector.

    Declaration
    public const PortConstraints Connectable
    Field Value
    Type
    PortConstraints

    ConnectionDirection

    Decide the connection direction of port based on ConnectionDirection

    Declaration
    public const PortConstraints ConnectionDirection
    Field Value
    Type
    PortConstraints

    Default

    Enables Inherit constraints.

    Declaration
    public const PortConstraints Default
    Field Value
    Type
    PortConstraints

    Draggable

    Defines whether port to be dragged at boundaries of node

    Declaration
    public const PortConstraints Draggable
    Field Value
    Type
    PortConstraints

    Dynamic

    Defines whether port to be connected at boundaries of node and pointed to the port.

    Declaration
    public const PortConstraints Dynamic
    Field Value
    Type
    PortConstraints

    InConnect

    Enables or disables connecting to the incoming Connector.

    Declaration
    public const PortConstraints InConnect
    Field Value
    Type
    PortConstraints

    Inherit

    Enables or disables to inherit the value of PortVisibility, HitPadding and Connectable from Node.

    Declaration
    public const PortConstraints Inherit
    Field Value
    Type
    PortConstraints

    InheritConnectable

    Enables or disables to inherit the value of Connectable from Node.

    Declaration
    public const PortConstraints InheritConnectable
    Field Value
    Type
    PortConstraints

    InheritHitPadding

    Enables or disables to inherit the value of HitPadding.

    Declaration
    public const PortConstraints InheritHitPadding
    Field Value
    Type
    PortConstraints

    InheritPortVisibility

    Enables or disables to inherit the value of PortVisibility from Node.

    Declaration
    public const PortConstraints InheritPortVisibility
    Field Value
    Type
    PortConstraints

    None

    Disable all port Constraints.

    Declaration
    public const PortConstraints None
    Field Value
    Type
    PortConstraints

    OutConnect

    Enables or disables connecting the outgoing Connector.

    Declaration
    public const PortConstraints OutConnect
    Field Value
    Type
    PortConstraints

    Snapping

    Enables or disables snapping on node

    Declaration
    public const PortConstraints Snapping
    Field Value
    Type
    PortConstraints

    Extension Methods

    DiagramExtensions.Add(PortConstraints, PortConstraints[])
    DiagramExtensions.Remove(PortConstraints, PortConstraints[])
    DiagramExtensions.Toggle(PortConstraints, PortConstraints[])
    DiagramExtensions.Contains(PortConstraints, PortConstraints)
    DiagramExtensions.ContainsAll(PortConstraints, PortConstraints)
    DateTimeExtension.ToDateTime(Object)
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved