Blazor

Upgrade Guide User Guide Demos Support Forums Download
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class NodeConstraints - Blazor API Reference | Syncfusion

    Show / Hide Table of Contents

    Class NodeConstraints

    The node constraints allow the users to enable or disable certain behaviors and features of the diagram nodes.

    Inheritance
    System.Object
    NodeConstraints
    Namespace: Syncfusion.Blazor.Diagrams
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public sealed class NodeConstraints : Enum
    Remarks
    The node constraints are enabled or disabled using the bitwise operators. The ’~’ operator is used to disable the node constraints.
    The following code snippet is an example to set node constraints.
    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
    Type Description
    NodeConstraints

    AllowMovingOutsideLane

    Enables or disables child in parent for the swimLane node.

    Declaration
    public const NodeConstraints AllowMovingOutsideLane
    Field Value
    Type Description
    NodeConstraints

    AspectRatio

    Enables the Aspect ratio of the node.

    Declaration
    public const NodeConstraints AspectRatio
    Field Value
    Type Description
    NodeConstraints

    Default

    Enables all the constraints for a node

    Declaration
    public const NodeConstraints Default
    Field Value
    Type Description
    NodeConstraints

    Delete

    Enables or disables node deletion.

    Declaration
    public const NodeConstraints Delete
    Field Value
    Type Description
    NodeConstraints

    Drag

    Enables or disables the dragging functionality of a node.

    Declaration
    public const NodeConstraints Drag
    Field Value
    Type Description
    NodeConstraints

    Expandable

    Enables or disables the node expansion.

    Declaration
    public const NodeConstraints Expandable
    Field Value
    Type Description
    NodeConstraints

    HideThumbs

    Enables to hide all resize thumbs for the node.

    Declaration
    public const NodeConstraints HideThumbs
    Field Value
    Type Description
    NodeConstraints

    InConnect

    Enables node to allow only in coming connections.

    Declaration
    public const NodeConstraints InConnect
    Field Value
    Type Description
    NodeConstraints

    Individual

    Enables node to provide individual resize option.

    Declaration
    public const NodeConstraints Individual
    Field Value
    Type Description
    NodeConstraints

    Inherit

    It allows the node to inherit the interaction option from the parent object.

    Declaration
    public const NodeConstraints Inherit
    Field Value
    Type Description
    NodeConstraints

    InheritTooltip

    Enables or disables the inherit tooltip option from the parent object.

    Declaration
    public const NodeConstraints InheritTooltip
    Field Value
    Type Description
    NodeConstraints

    None

    Disable all node Constraints.

    Declaration
    public const NodeConstraints None
    Field Value
    Type Description
    NodeConstraints

    OutConnect

    Enables node to allow only out coming connections.

    Declaration
    public const NodeConstraints OutConnect
    Field Value
    Type Description
    NodeConstraints

    PointerEvents

    Enables or disables the mouse pointer’s events when clicking with a mouse.

    Declaration
    public const NodeConstraints PointerEvents
    Field Value
    Type Description
    NodeConstraints

    ReadOnly

    Enables the ReadOnly mode(Write operations cannot be done) for the annotation in the node.

    Declaration
    public const NodeConstraints ReadOnly
    Field Value
    Type Description
    NodeConstraints

    Resize

    Enables or Disables the expansion or compression of a node.

    Declaration
    public const NodeConstraints Resize
    Field Value
    Type Description
    NodeConstraints

    ResizeEast

    It enables or disables the resizing of the node in the East direction.

    Declaration
    public const NodeConstraints ResizeEast
    Field Value
    Type Description
    NodeConstraints

    ResizeNorth

    It enables or disables the resizing of the node in the North direction.

    Declaration
    public const NodeConstraints ResizeNorth
    Field Value
    Type Description
    NodeConstraints

    ResizeNorthEast

    It enables or disables the resizing of the node in the NorthEast direction.

    Declaration
    public const NodeConstraints ResizeNorthEast
    Field Value
    Type Description
    NodeConstraints

    ResizeNorthWest

    It enables or disables the resizing of the node in the NorthWest direction.

    Declaration
    public const NodeConstraints ResizeNorthWest
    Field Value
    Type Description
    NodeConstraints

    ResizeSouth

    It enables or disables the resizing of the node in the South direction.

    Declaration
    public const NodeConstraints ResizeSouth
    Field Value
    Type Description
    NodeConstraints

    ResizeSouthEast

    It enables or disables the resizing of the node in the SouthEast direction.

    Declaration
    public const NodeConstraints ResizeSouthEast
    Field Value
    Type Description
    NodeConstraints

    ResizeSouthWest

    It enables or disables the resizing of the node in the SouthWest direction.

    Declaration
    public const NodeConstraints ResizeSouthWest
    Field Value
    Type Description
    NodeConstraints

    ResizeWest

    It enables or disables the resizing of the node in the West direction.

    Declaration
    public const NodeConstraints ResizeWest
    Field Value
    Type Description
    NodeConstraints

    Rotate

    Enables or disables node rotation. It is done with the help of a curvy arrow.

    Declaration
    public const NodeConstraints Rotate
    Field Value
    Type Description
    NodeConstraints

    Select

    Enables or disables the selection of a node in the diagram.

    Declaration
    public const NodeConstraints Select
    Field Value
    Type Description
    NodeConstraints

    Shadow

    Enables or disables to display the node’s shadow.

    Declaration
    public const NodeConstraints Shadow
    Field Value
    Type Description
    NodeConstraints

    Tooltip

    Enables or disables the tooltip for the Nodes.

    Declaration
    public const NodeConstraints Tooltip
    Field Value
    Type Description
    NodeConstraints

    value__

    Declaration
    public int value__
    Field Value
    Type Description
    System.Int32
    Back to top Generated by DocFX
    Copyright © 2001 - 2022 Syncfusion Inc. All Rights Reserved