New to Telerik UI for WinFormsStart a free 30-day trial

Defines the parameters when applying a tree layout (or one of its variations).

Definition

Namespace:Telerik.Windows.Diagrams.Core

Assembly:Telerik.WinControls.RadDiagram.dll

Syntax:

C#
public sealed class TreeLayoutSettings

Inheritance: objectTreeLayoutSettings

Constructors

Initializes a new instance of the TreeLayoutSettings class.

C#
public TreeLayoutSettings()

Properties

Gets or sets whether layout changes are animated.

C#
public bool AnimateTransitions { get; set; }

Gets or sets the component margin.

C#
public Size ComponentMargin { get; set; }
Property Value:

The component margin.

Gets or sets the width of the components grid.

C#
public double ComponentsGridWidth { get; set; }
Property Value:

The width of the components grid.

Gets or sets the end angle of the radial layout.

C#
public double EndRadialAngle { get; set; }
Property Value:

The start radial angle in radians. The default is two times Pi.

Remarks:

The radial layout allows you to use a sector instead of the full 360 degrees. This end angle defines the end of this sector.

The horizontal distance between siblings.

C#
public double HorizontalSeparation { get; set; }

Gets or sets whether the shape containers are ignored when laying out the graph. If false the shape containers will be considered as ordinary shapes in the tree layout process. You can additionally set the LayoutContainerChildren flag to perform a separate layout pass on the content of the containers. On the other hand, if this property is set to true the LayoutContainerChildren flag will have no effect since the layout process will be oblivious to the containers.

C#
public bool IgnoreContainers { get; set; }

Gets or sets whether the non-visible diagram items have to be taken into account. If set to true shapes with Visibility not set to Visible will be ignored.

C#
public bool IgnoreInvisible { get; set; }

When using radial layout on a forest one can either apply the layout to the trees connected via a fictive common root or apply the radial to each tree and layout each component on a grid.

C#
public bool KeepComponentsInOneRadialLayout { get; set; }
Property Value:

true if the trees need to be in one diagram layout; otherwise, false.

Gets or sets a value indicating whether the content of the containers is processed on top of the global layout. This flag has only an effect if IgnoreContainers is set to false.

C#
public bool LayoutContainerChildren { get; set; }

The radial distance between the root and the first level.

C#
public double RadialFirstLEvelSeparation { get; set; }

The radial separation between layers.

C#
public double RadialSeparation { get; set; }

Gets the roots of the forest.

C#
public IList<IShape> Roots { get; }
Remarks:

A forest is a collection of tree graphs. If you have one or multiple roots you can add them to this collection and they will be taken at the root for the layout. If not then the most probable tree root will be analyzed (on the basis of the longest path in the graph).

Gets or sets the start angle of the radial layout.

C#
public double StartRadialAngle { get; set; }
Property Value:

The start radial angle in radians. The default is zero.

Remarks:

The radial layout allows you to use a sector instead of the full 360 degrees. This start angle defines the beginning of this sector.

Gets or sets the level from which the tip-over arrangement should be applied. A value of zero means that the children underneath the root will have a tip-over arrangement, a value of one means the grand-children of the root will have this applied and so on.

C#
public int TipOverTreeStartLevel { get; set; }

Gets or sets the margin of the whole diagram.

C#
public Size TotalMargin { get; set; }
Property Value:

The total margin.

Gets or sets the type of the layout.

C#
public TreeLayoutType TreeLayoutType { get; set; }
Property Value:

The type of the layout.

The horizontal offset of the children when in TipOverTree layout mode.

C#
public double UnderneathHorizontalOffset { get; set; }

The horizontal separation of the children when in TipOverTree layout mode.

C#
public double UnderneathVerticalSeparation { get; set; }

The vertical offset of the first child when in TipOverTree layout mode.

C#
public double UnderneathVerticalTopOffset { get; set; }

Gets or sets the distance between layers.

C#
public double VerticalDistance { get; set; }

The vertical distance between parent and child.

C#
public double VerticalSeparation { get; set; }