skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • NEW: Design Kits for Figma
    • Online Training
    • Document Processing Library
    • Embedded Reporting for web and desktop

    Web

    Kendo UI UI for jQuery UI for Angular UI for React UI for Vue UI for Blazor UI for ASP.NET Core UI for ASP.NET MVC UI for ASP.NET AJAX

    Mobile

    UI for .NET MAUI

    Document Management

    Telerik Document Processing

    Desktop

    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF

    Reporting

    Telerik Reporting Telerik Report Server

    Testing & Mocking

    Test Studio Test Studio Dev Edition Telerik JustMock

    CMS

    Sitefinity

    UI/UX Tools

    ThemeBuilder Design System Kit Templates and Building Blocks

    Debugging

    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Everywhere Reporter FiddlerCore

    Free Tools

    VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Support and Learning

    • Support and Learning Hub
    • First Steps
    • Docs
    • Demos
    • Virtual Classroom
    • Forums
    • Videos
    • Blogs
    • Accessibility
    • Submit a Ticket

    Productivity and Design Tools

    • Visual Studio Extensions
    • Visual Studio Templates
    • Embedded Reporting
  • Pricing
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class TreeLayoutSettings

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

Inheritance
System.Object
TreeLayoutSettings
Namespace: Telerik.Windows.Diagrams.Core
Assembly: Telerik.Windows.Diagrams.Core.dll

Syntax

public sealed class TreeLayoutSettings : Object

Constructors

TreeLayoutSettings()

Initializes a new instance of the TreeLayoutSettings class.

Declaration
public TreeLayoutSettings()

Properties

AnimateTransitions

Gets or sets whether layout changes are animated.

Declaration
public bool AnimateTransitions { get; set; }
Property Value
System.Boolean

ComponentMargin

Gets or sets the component margin.

Declaration
public Size ComponentMargin { get; set; }
Property Value
System.Windows.Size

The component margin.

ComponentsGridWidth

Gets or sets the width of the components grid.

Declaration
public double ComponentsGridWidth { get; set; }
Property Value
System.Double

The width of the components grid.

EndRadialAngle

Gets or sets the end angle of the radial layout.

Declaration
public double EndRadialAngle { get; set; }
Property Value
System.Double

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.

HorizontalSeparation

The horizontal distance between siblings.

Declaration
public double HorizontalSeparation { get; set; }
Property Value
System.Double

IgnoreContainers

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.

Declaration
public bool IgnoreContainers { get; set; }
Property Value
System.Boolean

See Also
LayoutContainerChildren

IgnoreInvisible

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.

Declaration
public bool IgnoreInvisible { get; set; }
Property Value
System.Boolean

KeepComponentsInOneRadialLayout

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.

Declaration
public bool KeepComponentsInOneRadialLayout { get; set; }
Property Value
System.Boolean

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

LayoutContainerChildren

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.

Declaration
public bool LayoutContainerChildren { get; set; }
Property Value
System.Boolean

See Also
IgnoreContainers

RadialFirstLEvelSeparation

The radial distance between the root and the first level.

Declaration
public double RadialFirstLEvelSeparation { get; set; }
Property Value
System.Double

RadialSeparation

The radial separation between layers.

Declaration
public double RadialSeparation { get; set; }
Property Value
System.Double

Roots

Gets the roots of the forest.

Declaration
public IList<IShape> Roots { get; }
Property Value
System.Collections.Generic.IList<IShape>

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).

StartRadialAngle

Gets or sets the start angle of the radial layout.

Declaration
public double StartRadialAngle { get; set; }
Property Value
System.Double

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.

TipOverTreeStartLevel

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.

Declaration
public int TipOverTreeStartLevel { get; set; }
Property Value
System.Int32

TotalMargin

Gets or sets the margin of the whole diagram.

Declaration
public Size TotalMargin { get; set; }
Property Value
System.Windows.Size

The total margin.

TreeLayoutType

Gets or sets the type of the layout.

Declaration
public TreeLayoutType TreeLayoutType { get; set; }
Property Value
TreeLayoutType

The type of the layout.

UnderneathHorizontalOffset

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

Declaration
public double UnderneathHorizontalOffset { get; set; }
Property Value
System.Double

UnderneathVerticalSeparation

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

Declaration
public double UnderneathVerticalSeparation { get; set; }
Property Value
System.Double

UnderneathVerticalTopOffset

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

Declaration
public double UnderneathVerticalTopOffset { get; set; }
Property Value
System.Double

VerticalDistance

Gets or sets the distance between layers.

Declaration
public double VerticalDistance { get; set; }
Property Value
System.Double

VerticalSeparation

The vertical distance between parent and child.

Declaration
public double VerticalSeparation { get; set; }
Property Value
System.Double

Extension Methods

CollectionExtensions.ToEnumerable<T>(T)
EnumerableExtensions.ToEnumerable<T>(T)
Getting Started
  • Install Now
  • Demos
  • SDK Samples Browser
  • Sample Applications
Support Resources
  • Code Library
  • Knowledge Base
  • MVVM Support
  • Videos
  • GitHub SDK Repository
Community
  • Forums
  • Blogs
  • XAML Feedback Portal
  • Document Processing Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.