Class SubgraphTreeLayoutManager
The SubgraphTreeLayoutManager is a special type of the DirectedTreeLayoutManager that enables the sub nodes of a diagram layout tree to have an orientation that is distinct from the parent node. The sub graph orientation is specified using a SubgraphPreferredLayout event that the layout manager raises before positioning each set of sub nodes in the graph. GraphLayoutManager DirectedTreeLayoutManager
Inheritance
Inherited Members
Namespace: Syncfusion.Windows.Forms.Diagram
Assembly: Syncfusion.Diagram.Base.dll
Syntax
public class SubgraphTreeLayoutManager : DirectedTreeLayoutManager
Constructors
SubgraphTreeLayoutManager()
Initializes a new instance of the SubgraphTreeLayoutManager class.
Declaration
public SubgraphTreeLayoutManager()
SubgraphTreeLayoutManager(Model, Single, Int32, Int32)
Initializes a new instance of the SubgraphTreeLayoutManager class.
Declaration
public SubgraphTreeLayoutManager(Model model, float fRotationDegree, int nVerticalOffset, int nHorizontalOffset)
Parameters
Type | Name | Description |
---|---|---|
Model | model | The diagram Model. |
System.Single | fRotationDegree | The root to child orientation to be used for the tree. |
System.Int32 | nVerticalOffset | Specifies the vertical distance between adjacent nodes. |
System.Int32 | nHorizontalOffset | Specifies the horizontal distance between adjacent nodes. |
Methods
DoGraphLayout()
Applies the layout strategy on the diagram.
Declaration
protected override void DoGraphLayout()
Overrides
MakeChangingDirectionGraphLayout(Graph)
Makes the changing direction graph layout.
Declaration
protected void MakeChangingDirectionGraphLayout(Graph graphToLayout)
Parameters
Type | Name | Description |
---|---|---|
Graph | graphToLayout | The graph to layout. |
MakeChangingDirectionLayout(Graph)
Performs the graph layout.
Declaration
protected void MakeChangingDirectionLayout(Graph graphSorting)
Parameters
Type | Name | Description |
---|---|---|
Graph | graphSorting | The graph on which the layout is being applied. |
Events
SubgraphPreferredLayout
Occurs before a sub node graph is positioned.
Declaration
public event SubgraphPreferredLayoutEventHandler SubgraphPreferredLayout
Event Type
Type |
---|
SubgraphPreferredLayoutEventHandler |
Remarks
Handling the SubgraphPreferredLayout event provides users with the ability to specify a distinct orientation and bounds for the sub nodes.