menu

ASP.NET Core - EJ2

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class SnapConstraints - ASP.NETCore-EJ2 API Reference | Syncfusion

    Show / Hide Table of Contents

    Class SnapConstraints

    Defines the constraints to Enables / Disables some features of Snapping. None - Snapping does not happen ShowHorizontalLines - Displays only the horizontal gridlines in diagram. ShowVerticalLines - Displays only the Vertical gridlines in diagram. ShowLines - Display both Horizontal and Vertical gridlines. SnapToHorizontalLines - Enables the object to snap only with horizontal gridlines. SnapToVerticalLines - Enables the object to snap only with horizontal gridlines. SnapToLines - Enables the object to snap with both horizontal and Vertical gridlines. snapToObject - Enables the object to snap with the other objects in the diagram.

    Inheritance
    System.Object
    SnapConstraints
    Namespace: Syncfusion.EJ2.Diagrams
    Assembly: Syncfusion.EJ2.dll
    Syntax
    public sealed class SnapConstraints : Enum

    Fields

    All

    Shows gridlines and enables snapping

    Declaration
    public const SnapConstraints All
    Field Value
    Type
    SnapConstraints

    None

    None - Snapping does not happen

    Declaration
    public const SnapConstraints None
    Field Value
    Type
    SnapConstraints

    ShowHorizontalLines

    ShowHorizontalLines - Displays only the horizontal gridlines in diagram.

    Declaration
    public const SnapConstraints ShowHorizontalLines
    Field Value
    Type
    SnapConstraints

    ShowLines

    ShowLines - Display both Horizontal and Vertical gridlines

    Declaration
    public const SnapConstraints ShowLines
    Field Value
    Type
    SnapConstraints

    ShowVerticalLines

    ShowVerticalLines - Displays only the Vertical gridlines in diagram

    Declaration
    public const SnapConstraints ShowVerticalLines
    Field Value
    Type
    SnapConstraints

    SnapToHorizontalLines

    SnapToHorizontalLines - Enables the object to snap only with horizontal gridlines

    Declaration
    public const SnapConstraints SnapToHorizontalLines
    Field Value
    Type
    SnapConstraints

    SnapToLines

    SnapToLines - Enables the object to snap with both horizontal and Vertical gridlines

    Declaration
    public const SnapConstraints SnapToLines
    Field Value
    Type
    SnapConstraints

    SnapToObject

    SnapToObject - Enables the object to snap with the other objects in the diagram.

    Declaration
    public const SnapConstraints SnapToObject
    Field Value
    Type
    SnapConstraints

    SnapToVerticalLines

    SnapToVerticalLines - Enables the object to snap only with horizontal gridlines

    Declaration
    public const SnapConstraints SnapToVerticalLines
    Field Value
    Type
    SnapConstraints
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved