Class NodeConstraints
The node constraints allow the users to enable or disable certain behaviors and features of the diagram nodes.
Inheritance
System.Object
NodeConstraints
Assembly: Syncfusion.Blazor.dll
Syntax
public sealed class NodeConstraints : Enum
Examples
<SfDiagram Height="600px" Nodes="@NodeCollection">
</SfDiagram>
@code{
ObservableCollection<DiagramNode> NodeCollection;
protected override void OnInitialized()
{
NodeCollection = new ObservableCollection<DiagramNode>();
DiagramNode Node = new DiagramNode()
{
Id = "node1",
Height = 100,
Width = 100,
OffsetX = 100,
OffsetY = 100,
//sets the NodeConstraints constraints...
Constraints = NodeConstraints.Default & ~NodeConstraints.Rotate
};
NodeCollection.Add(Node);
}
}
Fields
AllowDrop
AllowDrop allows dropping a node.
Declaration
public const NodeConstraints AllowDrop
Field Value
AllowMovingOutsideLane
Enables or disables child in parent for the swimLane node.
Declaration
public const NodeConstraints AllowMovingOutsideLane
Field Value
AspectRatio
Enables the Aspect ratio of the node.
Declaration
public const NodeConstraints AspectRatio
Field Value
Default
Enables all the constraints for a node
Declaration
public const NodeConstraints Default
Field Value
Delete
Enables or disables node deletion.
Declaration
public const NodeConstraints Delete
Field Value
Drag
Enables or disables the dragging functionality of a node.
Declaration
public const NodeConstraints Drag
Field Value
Expandable
Enables or disables the node expansion.
Declaration
public const NodeConstraints Expandable
Field Value
HideThumbs
Enables to hide all resize thumbs for the node.
Declaration
public const NodeConstraints HideThumbs
Field Value
InConnect
Enables node to allow only in coming connections.
Declaration
public const NodeConstraints InConnect
Field Value
Individual
Enables node to provide individual resize option.
Declaration
public const NodeConstraints Individual
Field Value
Inherit
It allows the node to inherit the interaction option from the parent object.
Declaration
public const NodeConstraints Inherit
Field Value
Enables or disables the inherit tooltip option from the parent object.
Declaration
public const NodeConstraints InheritTooltip
Field Value
None
Disable all node Constraints.
Declaration
public const NodeConstraints None
Field Value
OutConnect
Enables node to allow only out coming connections.
Declaration
public const NodeConstraints OutConnect
Field Value
PointerEvents
Enables or disables the mouse pointer’s events when clicking with a mouse.
Declaration
public const NodeConstraints PointerEvents
Field Value
ReadOnly
Enables the ReadOnly mode(Write operations cannot be done) for the annotation in the node.
Declaration
public const NodeConstraints ReadOnly
Field Value
Resize
Enables or Disables the expansion or compression of a node.
Declaration
public const NodeConstraints Resize
Field Value
ResizeEast
It enables or disables the resizing of the node in the East direction.
Declaration
public const NodeConstraints ResizeEast
Field Value
ResizeNorth
It enables or disables the resizing of the node in the North direction.
Declaration
public const NodeConstraints ResizeNorth
Field Value
ResizeNorthEast
It enables or disables the resizing of the node in the NorthEast direction.
Declaration
public const NodeConstraints ResizeNorthEast
Field Value
ResizeNorthWest
It enables or disables the resizing of the node in the NorthWest direction.
Declaration
public const NodeConstraints ResizeNorthWest
Field Value
ResizeSouth
It enables or disables the resizing of the node in the South direction.
Declaration
public const NodeConstraints ResizeSouth
Field Value
ResizeSouthEast
It enables or disables the resizing of the node in the SouthEast direction.
Declaration
public const NodeConstraints ResizeSouthEast
Field Value
ResizeSouthWest
It enables or disables the resizing of the node in the SouthWest direction.
Declaration
public const NodeConstraints ResizeSouthWest
Field Value
ResizeWest
It enables or disables the resizing of the node in the West direction.
Declaration
public const NodeConstraints ResizeWest
Field Value
Rotate
Enables or disables node rotation. It is done with the help of a curvy arrow.
Declaration
public const NodeConstraints Rotate
Field Value
Select
Enables or disables the selection of a node in the diagram.
Declaration
public const NodeConstraints Select
Field Value
Shadow
Enables or disables to display the node’s shadow.
Declaration
public const NodeConstraints Shadow
Field Value
Enables or disables the tooltip for the Nodes.
Declaration
public const NodeConstraints Tooltip
Field Value
value__
Declaration
Field Value
Type |
Description |
System.Int32 |
|