Skip to main content

TreeMapControl.LayoutAlgorithm Property

Gets or sets a layout algorithm for arranging TreeMap items.

Namespace: DevExpress.XtraTreeMap

Assembly: DevExpress.XtraTreeMap.v24.1.UI.dll

NuGet Package: DevExpress.Win.TreeMap

Declaration

[XtraSerializableProperty(XtraSerializationVisibility.Hidden)]
public ITreeMapLayoutAlgorithm LayoutAlgorithm { get; set; }

Property Value

Type Description
ITreeMapLayoutAlgorithm

An object of a class implementing the ITreeMapLayoutAlgorithm interface.

Example

To change the layout algorithm used by TreeMapControl, specify the TreeMapControl.LayoutAlgorithm property. For all default algorithms, you can configure the fill direction using the TreeMapLayoutAlgorithmBase.Direction.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace LayoutAlgorithmCustomization {
    static class Program {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main() {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new Form1());
        }
    }
}
See Also