TreeMapLayoutAlgorithmBase.Direction Property

Gets or sets the layout fill direction used by the algorithm.

Namespace: DevExpress.XtraTreeMap

Assembly: DevExpress.XtraTreeMap.v20.1.dll

Declaration

[XtraSerializableProperty]
[DefaultValue(TreeMapLayoutDirection.TopLeftToBottomRight)]
public TreeMapLayoutDirection Direction { get; set; }
<XtraSerializableProperty>
<DefaultValue(TreeMapLayoutDirection.TopLeftToBottomRight)>
Public Property Direction As TreeMapLayoutDirection

Property Value

Type Default Description
TreeMapLayoutDirection

TopLeftToBottomRight

A LayoutDirection enumeration value.

Remarks

For instance, for the LayoutDirection.TopLeftToBottomRight value, the largest tree map item will be arranged at the top left corner and the smallest item will be placed at the bottom right corner.

Examples

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