alexa
menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Search Results for

    Show / Hide Table of Contents

    Enum DiagramConstraints

    Specifies the constraints that enable or disable certain features of the SfDiagramComponent.

    Namespace: Syncfusion.Blazor.Diagram
    Assembly: Syncfusion.Blazor.dll
    Syntax
    [Flags]
    public enum DiagramConstraints
    Remarks

    The DiagramConstraints enumeration allows you to control various functionalities of the diagram component including user interactions, zooming, panning, routing, and other behavioral aspects.

    This enumeration supports bitwise operations, allowing multiple constraints to be combined.

    • None - Disables all diagram functionalities
    • Bridging - Enables bridge creation for connectors
    • UndoRedo - Enables undo/redo functionality
    • UserInteraction - Enables user interaction with the diagram
    • ApiUpdate - Enables public API updates
    • PageEditable - Combines user interaction and API update capabilities
    • Zoom - Enables zooming functionality
    • PanX - Enables horizontal panning
    • PanY - Enables vertical panning
    • Pan - Enables panning in both directions
    • ZoomTextEdit - Maintains zoom ratio during text editing
    • Tooltip - Enables tooltips for diagram elements
    • Routing - Enables automatic line routing
    • AvoidLineOverlapping - Prevents line overlapping
    • Default - Enables standard diagram functionalities
    Examples

    The following example demonstrates how to enable or disable the diagram functionalities.

    <SfDiagramComponent @bind-Constraints="@diagramConstraints" />
     @code
     {
       DiagramConstraints diagramConstraints = DiagramConstraints.Default;
    }

    Fields

    Name Description
    ApiUpdate

    Determines whether public API updates should be enabled for the diagram.

    AvoidLineOverlapping

    Enables or disables the avoid line overlapping functionality for connectors.

    Bridging

    Enables bridge creation for all connectors in the diagram.

    Default

    Enables the standard set of diagram functionalities.

    None

    Disables all functionalities of the diagram.

    PageEditable

    Enables diagram editing through both UserInteraction and ApiUpdate capabilities.

    Pan

    Enables panning functionality for the diagram in both horizontal and vertical directions.

    PanX

    Enables or disables panning actions only on the x-axis (horizontal panning).

    PanY

    Enables or disables panning actions only on the y-axis (vertical panning).

    Routing

    Enables or disables automatic line routing functionality for connectors.

    Tooltip

    Enables or disables tooltip functionality for diagram elements.

    UndoRedo

    Enables or disables the undo or redo functionality for the diagram.

    UserInteraction

    Determines whether user interaction should be enabled for the diagram.

    Zoom

    Enables or disables zooming functionality for the diagram.

    ZoomTextEdit

    Determines whether the current zoom ratio should be maintained during text editing operations.

    In this article
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved