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 |