Blazor

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

    Show / Hide Table of Contents

    Class BoundaryConstraints

    It allows the users to set the region to allow interaction with the diagram.

    Inheritance
    System.Object
    BoundaryConstraints
    Namespace: Syncfusion.Blazor.Diagrams
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public sealed class BoundaryConstraints : Enum
    Remarks

    The boundary constraints are enabled or disabled using the Bitwise operators. The ‘~’ operator is used to disable the boundary constraints. The boundary constraints can be enabled in the DiagramPageSettings.

    Examples
    <SfDiagram Height="600px" Nodes="@NodeCollection">
       // Initialize the page settings with boundary constraints.
       <DiagramPageSettings Height = "500" BoundaryConstraints="BoundaryConstraints.Page"></DiagramPageSettings>
    </SfDiagram>
    @code{
       ObservableCollection<DiagramNode> NodeCollection;
       protected override void OnInitialized()
       {
           NodeCollection = new ObservableCollection<DiagramNode>();
           DiagramNode node = new DiagramNode()
           {
               Height = 100,
               Width = 100,
               OffsetX = 100,
               OffsetY = 100,
           };
           NodeCollection.Add(node);
       }
    }

    Fields

    Diagram

    Allow the interactions to take place around the diagram height and width.

    Declaration
    public const BoundaryConstraints Diagram
    Field Value
    Type Description
    BoundaryConstraints

    Infinity

    Allow the interactions to take place at the infinite height and width.

    Declaration
    public const BoundaryConstraints Infinity
    Field Value
    Type Description
    BoundaryConstraints

    Page

    Allow the interactions to take place around the height and width mentioned on the page settings.

    Declaration
    public const BoundaryConstraints Page
    Field Value
    Type Description
    BoundaryConstraints

    value__

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