Class DiagramLayoutBuilder
Inheritance
System.Object
Syncfusion.EJ2.ControlBuilder
DiagramLayoutBuilder
Assembly: Syncfusion.EJ2.dll
Syntax
public class DiagramLayoutBuilder : ControlBuilder
Constructors
DiagramLayoutBuilder()
Declaration
public DiagramLayoutBuilder()
DiagramLayoutBuilder(DiagramLayout)
Declaration
public DiagramLayoutBuilder(DiagramLayout model)
Parameters
Methods
Arrangement(ChildArrangement)
connect the node's without overlapping in automatic layout
Declaration
public DiagramLayoutBuilder Arrangement(ChildArrangement value)
Parameters
Returns
Bounds(Object)
Aligns the layout within the given bounds
Declaration
public DiagramLayoutBuilder Bounds(object value)
Parameters
Type |
Name |
Description |
System.Object |
value |
|
Returns
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
Returns
ConnectionPointOrigin(ConnectionPointOrigin)
connect the node's without overlapping in automatic layout
Declaration
public DiagramLayoutBuilder ConnectionPointOrigin(ConnectionPointOrigin value)
Parameters
Returns
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
Returns
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
EnableRouting(Boolean)
Enable / Disable connector routing for the layout
Declaration
public DiagramLayoutBuilder EnableRouting(bool value)
Parameters
Type |
Name |
Description |
System.Boolean |
value |
|
Returns
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
FlowchartLayoutSettings(Object)
Defines the flow chart settings of the layout
Declaration
public DiagramLayoutBuilder FlowchartLayoutSettings(object value)
Parameters
Type |
Name |
Description |
System.Object |
value |
|
Returns
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
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
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
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
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
Returns
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
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
Margin(DiagramMargin)
Defines the space between the viewport and the layout
Declaration
public DiagramLayoutBuilder Margin(DiagramMargin value)
Parameters
Returns
Margin(Action<DiagramMarginBuilder>)
Declaration
public DiagramLayoutBuilder Margin(Action<DiagramMarginBuilder> margin)
Parameters
Returns
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
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
Returns
Root(String)
Defines the root of the hierarchical tree layout
Declaration
public DiagramLayoutBuilder Root(string value)
Parameters
Type |
Name |
Description |
System.String |
value |
|
Returns
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
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(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
Returns
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
Returns
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