menu

ASP.NET MVC - EJ2

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

    Show / Hide Table of Contents

    Class DiagramLayoutBuilder

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

    Constructors

    DiagramLayoutBuilder()

    Declaration
    public DiagramLayoutBuilder()

    DiagramLayoutBuilder(DiagramLayout)

    Declaration
    public DiagramLayoutBuilder(DiagramLayout model)
    Parameters
    Type Name Description
    DiagramLayout model

    Methods

    Arrangement(ChildArrangement)

    connect the node's without overlapping in automatic layout

    Declaration
    public DiagramLayoutBuilder Arrangement(ChildArrangement value)
    Parameters
    Type Name Description
    ChildArrangement value
    Returns
    Type
    DiagramLayoutBuilder

    Bounds(Object)

    Aligns the layout within the given bounds

    Declaration
    public DiagramLayoutBuilder Bounds(object value)
    Parameters
    Type Name Description
    System.Object value
    Returns
    Type
    DiagramLayoutBuilder

    ConnectionDirection(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 DiagramLayoutBuilder ConnectionDirection(ConnectionDirection value)
    Parameters
    Type Name Description
    ConnectionDirection value
    Returns
    Type
    DiagramLayoutBuilder

    ConnectionPointOrigin(ConnectionPointOrigin)

    connect the node's without overlapping in automatic layout

    Declaration
    public DiagramLayoutBuilder ConnectionPointOrigin(ConnectionPointOrigin value)
    Parameters
    Type Name Description
    ConnectionPointOrigin value
    Returns
    Type
    DiagramLayoutBuilder

    ConnectorSegments(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 DiagramLayoutBuilder ConnectorSegments(ConnectorSegments value)
    Parameters
    Type Name Description
    ConnectorSegments value
    Returns
    Type
    DiagramLayoutBuilder

    EnableAnimation(Boolean)

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

    Declaration
    public DiagramLayoutBuilder EnableAnimation(bool value)
    Parameters
    Type Name Description
    System.Boolean value
    Returns
    Type
    DiagramLayoutBuilder

    EnableRouting(Boolean)

    Enable / Disable connector routing for the layout

    Declaration
    public DiagramLayoutBuilder EnableRouting(bool value)
    Parameters
    Type Name Description
    System.Boolean value
    Returns
    Type
    DiagramLayoutBuilder

    FixedNode(String)

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

    Declaration
    public DiagramLayoutBuilder FixedNode(string value)
    Parameters
    Type Name Description
    System.String value
    Returns
    Type
    DiagramLayoutBuilder

    FlowchartLayoutSettings(Object)

    Defines the flow chart settings of the layout

    Declaration
    public DiagramLayoutBuilder FlowchartLayoutSettings(object value)
    Parameters
    Type Name Description
    System.Object value
    Returns
    Type
    DiagramLayoutBuilder

    GetBranch(Object)

    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 DiagramLayoutBuilder GetBranch(object value)
    Parameters
    Type Name Description
    System.Object value
    Returns
    Type
    DiagramLayoutBuilder

    GetBranch(String)

    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 DiagramLayoutBuilder GetBranch(string value)
    Parameters
    Type Name Description
    System.String value
    Returns
    Type
    DiagramLayoutBuilder

    GetLayoutInfo(Object)

    getLayoutInfo is used to configure every subtree of the organizational chart

    Declaration
    public DiagramLayoutBuilder GetLayoutInfo(object value)
    Parameters
    Type Name Description
    System.Object value
    Returns
    Type
    DiagramLayoutBuilder

    GetLayoutInfo(String)

    getLayoutInfo is used to configure every subtree of the organizational chart

    Declaration
    public DiagramLayoutBuilder GetLayoutInfo(string value)
    Parameters
    Type Name Description
    System.String value
    Returns
    Type
    DiagramLayoutBuilder

    HorizontalAlignment(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 DiagramLayoutBuilder HorizontalAlignment(HorizontalAlignment value)
    Parameters
    Type Name Description
    HorizontalAlignment value
    Returns
    Type
    DiagramLayoutBuilder

    HorizontalSpacing(Double)

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

    Declaration
    public DiagramLayoutBuilder HorizontalSpacing(double value)
    Parameters
    Type Name Description
    System.Double value
    Returns
    Type
    DiagramLayoutBuilder

    LayoutInfo(Object)

    getLayoutInfo is used to configure every subtree of the organizational chart

    Declaration
    public DiagramLayoutBuilder LayoutInfo(object value)
    Parameters
    Type Name Description
    System.Object value
    Returns
    Type
    DiagramLayoutBuilder

    Margin(DiagramMargin)

    Defines the space between the viewport and the layout

    Declaration
    public DiagramLayoutBuilder Margin(DiagramMargin value)
    Parameters
    Type Name Description
    DiagramMargin value
    Returns
    Type
    DiagramLayoutBuilder

    Margin(Action<DiagramMarginBuilder>)

    Declaration
    public DiagramLayoutBuilder Margin(Action<DiagramMarginBuilder> margin)
    Parameters
    Type Name Description
    System.Action<DiagramMarginBuilder> margin
    Returns
    Type
    DiagramLayoutBuilder

    MaxIteration(Double)

    Sets the Maximum no of iteration of the symmetrical layout

    Declaration
    public DiagramLayoutBuilder MaxIteration(double value)
    Parameters
    Type Name Description
    System.Double value
    Returns
    Type
    DiagramLayoutBuilder

    Orientation(LayoutOrientation)

    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 DiagramLayoutBuilder Orientation(LayoutOrientation value)
    Parameters
    Type Name Description
    LayoutOrientation value
    Returns
    Type
    DiagramLayoutBuilder

    Root(String)

    Defines the root of the hierarchical tree layout

    Declaration
    public DiagramLayoutBuilder Root(string value)
    Parameters
    Type Name Description
    System.String value
    Returns
    Type
    DiagramLayoutBuilder

    SpringFactor(Double)

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

    Declaration
    public DiagramLayoutBuilder SpringFactor(double value)
    Parameters
    Type Name Description
    System.Double value
    Returns
    Type
    DiagramLayoutBuilder

    SpringLength(Double)

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

    Declaration
    public DiagramLayoutBuilder SpringLength(double value)
    Parameters
    Type Name Description
    System.Double value
    Returns
    Type
    DiagramLayoutBuilder

    Type(LayoutType)

    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 DiagramLayoutBuilder Type(LayoutType value)
    Parameters
    Type Name Description
    LayoutType value
    Returns
    Type
    DiagramLayoutBuilder

    VerticalAlignment(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 DiagramLayoutBuilder VerticalAlignment(VerticalAlignment value)
    Parameters
    Type Name Description
    VerticalAlignment value
    Returns
    Type
    DiagramLayoutBuilder

    VerticalSpacing(Double)

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

    Declaration
    public DiagramLayoutBuilder VerticalSpacing(double value)
    Parameters
    Type Name Description
    System.Double value
    Returns
    Type
    DiagramLayoutBuilder
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved