menu

ASP.NET MVC - EJ2

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

    Show / Hide Table of Contents

    Class DiagramSnapSettingsBuilder

    Inheritance
    System.Object
    Syncfusion.EJ2.ControlBuilder
    DiagramSnapSettingsBuilder
    Namespace: Syncfusion.EJ2.Diagrams
    Assembly: Syncfusion.EJ2.dll
    Syntax
    public class DiagramSnapSettingsBuilder : ControlBuilder

    Constructors

    DiagramSnapSettingsBuilder()

    Declaration
    public DiagramSnapSettingsBuilder()

    DiagramSnapSettingsBuilder(DiagramSnapSettings)

    Declaration
    public DiagramSnapSettingsBuilder(DiagramSnapSettings model)
    Parameters
    Type Name Description
    DiagramSnapSettings model

    Methods

    Constraints(SnapConstraints)

    Constraints for gridlines and 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.

    Declaration
    public DiagramSnapSettingsBuilder Constraints(SnapConstraints value)
    Parameters
    Type Name Description
    SnapConstraints value
    Returns
    Type
    DiagramSnapSettingsBuilder

    GridType(GridType)

    Defines the diagram Grid pattern. Lines - Render the line for the grid Dots - Render the dot for the grid

    Declaration
    public DiagramSnapSettingsBuilder GridType(GridType value)
    Parameters
    Type Name Description
    GridType value
    Returns
    Type
    DiagramSnapSettingsBuilder

    HorizontalGridlines(DiagramGridlines)

    Defines the horizontal gridlines

    Declaration
    public DiagramSnapSettingsBuilder HorizontalGridlines(DiagramGridlines value)
    Parameters
    Type Name Description
    DiagramGridlines value
    Returns
    Type
    DiagramSnapSettingsBuilder

    HorizontalGridlines(Action<DiagramGridlinesBuilder>)

    Declaration
    public DiagramSnapSettingsBuilder HorizontalGridlines(Action<DiagramGridlinesBuilder> horizontalGridlines)
    Parameters
    Type Name Description
    System.Action<DiagramGridlinesBuilder> horizontalGridlines
    Returns
    Type
    DiagramSnapSettingsBuilder

    SnapAngle(Double)

    Defines the angle by which the object needs to be snapped

    Declaration
    public DiagramSnapSettingsBuilder SnapAngle(double value)
    Parameters
    Type Name Description
    System.Double value
    Returns
    Type
    DiagramSnapSettingsBuilder

    SnapLineColor(String)

    Defines the color of snapping lines

    Declaration
    public DiagramSnapSettingsBuilder SnapLineColor(string value)
    Parameters
    Type Name Description
    System.String value
    Returns
    Type
    DiagramSnapSettingsBuilder

    SnapObjectDistance(Double)

    Sets the minimum distance between the selected object and the nearest object

    Declaration
    public DiagramSnapSettingsBuilder SnapObjectDistance(double value)
    Parameters
    Type Name Description
    System.Double value
    Returns
    Type
    DiagramSnapSettingsBuilder

    VerticalGridlines(DiagramGridlines)

    Defines the vertical gridlines

    Declaration
    public DiagramSnapSettingsBuilder VerticalGridlines(DiagramGridlines value)
    Parameters
    Type Name Description
    DiagramGridlines value
    Returns
    Type
    DiagramSnapSettingsBuilder

    VerticalGridlines(Action<DiagramGridlinesBuilder>)

    Declaration
    public DiagramSnapSettingsBuilder VerticalGridlines(Action<DiagramGridlinesBuilder> verticalGridlines)
    Parameters
    Type Name Description
    System.Action<DiagramGridlinesBuilder> verticalGridlines
    Returns
    Type
    DiagramSnapSettingsBuilder
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved