TreeMapControl.LayoutAlgorithm Property
Gets or sets a layout algorithm for arranging TreeMap items.
Namespace: DevExpress.XtraTreeMap
Assembly: DevExpress.XtraTreeMap.v18.2.dll
Declaration
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.
Note
A complete sample project is available at https://github.com/DevExpress-Examples/how-to-customize-prefefined-layout-algorithms-t361431
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());
}
}
}
Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the LayoutAlgorithm property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.