Class DiagramLayout
Inheritance
System.Object
DiagramLayout
Assembly: Syncfusion.EJ2.dll
Syntax
public class DiagramLayout : EJTagHelper
Constructors
DiagramLayout()
Declaration
Properties
Arrangement
connect the node's without overlapping in automatic layout
Declaration
public ChildArrangement Arrangement { get; set; }
Property Value
Bounds
Aligns the layout within the given bounds
Declaration
public object Bounds { get; set; }
Property Value
Type |
Description |
System.Object |
|
ConnectionDirection
Declaration
public ConnectionDirection ConnectionDirection { get; set; }
Property Value
ConnectionPointOrigin
connect the node's without overlapping in automatic layout
Declaration
public ConnectionPointOrigin ConnectionPointOrigin { get; set; }
Property Value
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
ContentTemplate
To get or set value for ContentTemplate.
Declaration
public MvcTemplate<object> ContentTemplate { get; set; }
Property Value
EnableAnimation
Enables/Disables animation option when a node is expanded/collapsed
Declaration
public bool EnableAnimation { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
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 |
|
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 |
|
GetLayoutInfo
getLayoutInfo is used to configure every subtree of the organizational chart
Declaration
public object GetLayoutInfo { get; set; }
Property Value
Type |
Description |
System.Object |
|
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
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 |
|
IsComplex
Declaration
protected override bool IsComplex { get; }
Property Value
Type |
Description |
System.Boolean |
|
Overrides
LayoutInfo
getLayoutInfo is used to configure every subtree of the organizational chart
Declaration
public object LayoutInfo { get; set; }
Property Value
Type |
Description |
System.Object |
|
Margin
Defines the space between the viewport and the layout
Declaration
public DiagramMargin Margin { get; set; }
Property Value
MaxIteration
Sets the Maximum no of iteration of the symmetrical layout
Declaration
public double MaxIteration { get; set; }
Property Value
Type |
Description |
System.Double |
|
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
Declaration
public LayoutOrientation Orientation { get; set; }
Property Value
ParentPropertyName
Declaration
protected override string ParentPropertyName { get; }
Property Value
Type |
Description |
System.String |
|
Overrides
Root
Defines the root of the hierarchical tree layout
Declaration
public string Root { get; set; }
Property Value
Type |
Description |
System.String |
|
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 |
|
SpringLength
Sets how long edges should be, ideally of the symmetrical layout
Declaration
public double SpringLength { get; set; }
Property Value
Type |
Description |
System.Double |
|
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
Declaration
public LayoutType Type { get; set; }
Property Value
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
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 |
|