menu

ASP.NET MVC - EJ2

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

    Show / Hide Table of Contents

    Class DiagramLayout

    Inheritance
    System.Object
    Syncfusion.EJ2.EJTagHelper
    DiagramLayout
    Namespace: Syncfusion.EJ2.Diagrams
    Assembly: Syncfusion.EJ2.dll
    Syntax
    public class DiagramLayout : EJTagHelper

    Constructors

    DiagramLayout()

    Declaration
    public DiagramLayout()

    Properties

    Arrangement

    connect the node's without overlapping in automatic layout

    Declaration
    public ChildArrangement Arrangement { get; set; }
    Property Value
    Type Description
    ChildArrangement

    The default value is ChildArrangement.Nonlinear

    Bounds

    Aligns the layout within the given bounds

    Declaration
    public object Bounds { get; set; }
    Property Value
    Type Description
    System.Object

    The default value is null

    ConnectionDirection

    Sets how to define the connection direction (first segment direction and last segment direction). Auto - Defines the first segment direction based on the type of the layout Orientation - Defines the first segment direction based on the orientation of the layout Custom - Defines the first segment direction dynamically by the user

    Declaration
    public ConnectionDirection ConnectionDirection { get; set; }
    Property Value
    Type Description
    ConnectionDirection

    The default value is ConnectionDirection.Auto

    ConnectionPointOrigin

    connect the node's without overlapping in automatic layout

    Declaration
    public ConnectionPointOrigin ConnectionPointOrigin { get; set; }
    Property Value
    Type Description
    ConnectionPointOrigin

    The default value is ConnectionPointOrigin.SamePoint

    ConnectorSegments

    Sets whether the segments have to be customized based on the layout or not Default - Routes the connectors like a default diagram Layout - Routes the connectors based on the type of the layout

    Declaration
    public ConnectorSegments ConnectorSegments { get; set; }
    Property Value
    Type Description
    ConnectorSegments

    The default value is ConnectorSegments.Default

    ContentTemplate

    To get or set value for ContentTemplate.

    Declaration
    public MvcTemplate<object> ContentTemplate { get; set; }
    Property Value
    Type
    Syncfusion.EJ2.MvcTemplate<System.Object>

    EnableAnimation

    Enables/Disables animation option when a node is expanded/collapsed

    Declaration
    public bool EnableAnimation { get; set; }
    Property Value
    Type Description
    System.Boolean

    The default value is true

    EnableRouting

    Enable / Disable connector routing for the layout

    Declaration
    public bool EnableRouting { get; set; }
    Property Value
    Type Description
    System.Boolean

    The default value is false

    FixedNode

    Sets the name of the node with respect to which all other nodes will be translated

    Declaration
    public string FixedNode { get; set; }
    Property Value
    Type Description
    System.String

    The default value is ""

    FlowchartLayoutSettings

    Defines the flow chart settings of the layout

    Declaration
    public object FlowchartLayoutSettings { get; set; }
    Property Value
    Type Description
    System.Object

    The default value is null

    GetBranch

    Defines whether an object should be at the left/right of the mind map. Applicable only for the direct children of the root node

    Declaration
    public object GetBranch { get; set; }
    Property Value
    Type Description
    System.Object

    The default value is null

    GetLayoutInfo

    getLayoutInfo is used to configure every subtree of the organizational chart

    Declaration
    public object GetLayoutInfo { get; set; }
    Property Value
    Type Description
    System.Object

    The default value is null

    HorizontalAlignment

    Defines how the layout has to be horizontally aligned Stretch - Stretches the diagram element throughout its immediate parent Left - Aligns the diagram element at the left of its immediate parent Right - Aligns the diagram element at the right of its immediate parent Center - Aligns the diagram element at the center of its immediate parent Auto - Aligns the diagram element based on the characteristics of its immediate parent

    Declaration
    public HorizontalAlignment HorizontalAlignment { get; set; }
    Property Value
    Type Description
    HorizontalAlignment

    The default value is HorizontalAlignment.Auto

    HorizontalSpacing

    Sets the space that has to be horizontally left between the nodes

    Declaration
    public double HorizontalSpacing { get; set; }
    Property Value
    Type Description
    System.Double

    The default value is 30

    LayoutInfo

    getLayoutInfo is used to configure every subtree of the organizational chart

    Declaration
    public object LayoutInfo { get; set; }
    Property Value
    Type Description
    System.Object

    The default value is null

    Margin

    Defines the space between the viewport and the layout

    Declaration
    public DiagramMargin Margin { get; set; }
    Property Value
    Type Description
    DiagramMargin

    The default value is null

    MaxIteration

    Sets the Maximum no of iteration of the symmetrical layout

    Declaration
    public double MaxIteration { get; set; }
    Property Value
    Type Description
    System.Double

    The default value is 30

    Orientation

    Defines the orientation of layout TopToBottom - Renders the layout from top to bottom BottomToTop - Renders the layout from bottom to top LeftToRight - Renders the layout from left to right RightToLeft - Renders the layout from right to left Horizontal - Renders only the MindMap from left to right Vertical - Renders only the MindMap from top to bottom

    Declaration
    public LayoutOrientation Orientation { get; set; }
    Property Value
    Type Description
    LayoutOrientation

    The default value is LayoutOrientation.TopToBottom

    Root

    Defines the root of the hierarchical tree layout

    Declaration
    public string Root { get; set; }
    Property Value
    Type Description
    System.String

    The default value is ""

    SpringFactor

    Defines the Edge attraction and vertex repulsion forces, i.e., the more sibling nodes repel each other

    Declaration
    public double SpringFactor { get; set; }
    Property Value
    Type Description
    System.Double

    The default value is 40

    SpringLength

    Sets how long edges should be, ideally of the symmetrical layout

    Declaration
    public double SpringLength { get; set; }
    Property Value
    Type Description
    System.Double

    The default value is 50

    Type

    Defines the type of the layout None - None of the layouts is applied HierarchicalTree - Defines the type of the layout as Hierarchical Tree OrganizationalChart - Defines the type of the layout as Organizational Chart ComplexHierarchicalTree - Defines the type of the layout as complex HierarchicalTree RadialTree - Defines the type of the layout as Radial tree MindMap - Defines the type of the layout as MindMap SymmetricalLayout - Defines the type of the layout as SymmetricalLayout Flowchart - Defines the type of the layout as Flowchart

    Declaration
    public LayoutType Type { get; set; }
    Property Value
    Type Description
    LayoutType

    The default value is LayoutType.None

    VerticalAlignment

    Defines how the layout has to be vertically aligned Stretch - Stretches the diagram element throughout its immediate parent Top - Aligns the diagram element at the top of its immediate parent Bottom - Aligns the diagram element at the bottom of its immediate parent Center - Aligns the diagram element at the center of its immediate parent Auto - Aligns the diagram element based on the characteristics of its immediate parent

    Declaration
    public VerticalAlignment VerticalAlignment { get; set; }
    Property Value
    Type Description
    VerticalAlignment

    The default value is VerticalAlignment.Auto

    VerticalSpacing

    Sets the space that has to be Vertically left between the nodes

    Declaration
    public double VerticalSpacing { get; set; }
    Property Value
    Type Description
    System.Double

    The default value is 30

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